Can anyone help, getting a strange error trying to use CozSFTP 3.5.1 with a userid that hasn't used it before.
CoZBatchÝT¨: <- setupEnvironment()
CoZBatchÝT¨: -> openDDs()
CoZBatchÝE¨: ./CoZBatch.C(398) - fopen(//DD:STDIN,rt) - Ý21¨ EDC5021I The file attributes for open create an invalid combination. (errno2=0xC00B020F)
CoZBatchÝT¨: <- openDDs()
CoZBatchÝT¨: <- run()
CoZBatchÝW¨: an error occurred; returning rc=101
STDIN is defined as follows, nothing unusual about it, it's a PDS with RECFM=FB, LRECL=80, BLKSIZE=3200:
//STDIN DD DISP=SHR,DSN=SYSP.GB.COZ.SCOZPARM(SFTPIND)
CoZBatch fopen error
Re: CoZBatch fopen error
Replying to my own post, the problem was in the concatenation:
//STDIN DD DISP=SHR,DSN=&SFTPIND
// DD DDNAME=SFTPIN
The dataset that SFTPIN pointed to had inexplicably been created (not by myself I hasten to add!) with LRECL=91,BLKSIZE=27937. Recreating this dataset with LRECL=80 resolved the fopen error.
//STDIN DD DISP=SHR,DSN=&SFTPIND
// DD DDNAME=SFTPIN
The dataset that SFTPIN pointed to had inexplicably been created (not by myself I hasten to add!) with LRECL=91,BLKSIZE=27937. Recreating this dataset with LRECL=80 resolved the fopen error.
Re: CoZBatch fopen error
Good afternoon,
I have that same error message but what I find weird is that in the JCL where this step (STEP2) for removing a file fails, there's a previous step (STEP1) that gets that file to Mainframe and it works fine.
How can this be?
STEP1 OUTPUT:
cozsftp> lzopts mode=text
mode=text
cozsftp> lzopts mode=text
mode=text
cozsftp> CD /XPTO/XPTY
cozsftp> GET FILE1.txt //DD:MYE1
Fetching /XPTO/XPTY/FILE1.txt to //DD:MYE1
ZosSettingsÝI¨: Transfer options: clientcp=IBM-1047,gdgnt,mode=text,servercp=ISO8859-1,trim
ZosDatasetÝI¨: Opening dataset DD:MYE1 for write
ZosDatasetÝI¨: Closing dataset //HQL1.APL.STEP1.GET - 1200530 bytes received, 241527 records
written
CoZBatchÝI¨: returning rc=exitcode=0
STEP2 OUTPUT:
CoZBatchÝN¨: version: 6.2.1 2021-01-15
CoZBatchÝN¨: Copyright (C) Dovetailed Technologies, LLC. 2005-2021. All rights r
<- ()
CoZBatchÝE¨: ./CoZBatch.C(404) - fopen(//DD:STDIN,rt) - Ý21¨ EDC5021I The file attributes for open create an invalid
combination. (errno2=0xC00B020F)
CoZBatchÝW¨: an error occurred; returning rc=101
******************************** BOTTOM OF DATA ********************************
I have that same error message but what I find weird is that in the JCL where this step (STEP2) for removing a file fails, there's a previous step (STEP1) that gets that file to Mainframe and it works fine.
How can this be?
STEP1 OUTPUT:
cozsftp> lzopts mode=text
mode=text
cozsftp> lzopts mode=text
mode=text
cozsftp> CD /XPTO/XPTY
cozsftp> GET FILE1.txt //DD:MYE1
Fetching /XPTO/XPTY/FILE1.txt to //DD:MYE1
ZosSettingsÝI¨: Transfer options: clientcp=IBM-1047,gdgnt,mode=text,servercp=ISO8859-1,trim
ZosDatasetÝI¨: Opening dataset DD:MYE1 for write
ZosDatasetÝI¨: Closing dataset //HQL1.APL.STEP1.GET - 1200530 bytes received, 241527 records
written
CoZBatchÝI¨: returning rc=exitcode=0
STEP2 OUTPUT:
CoZBatchÝN¨: version: 6.2.1 2021-01-15
CoZBatchÝN¨: Copyright (C) Dovetailed Technologies, LLC. 2005-2021. All rights r
<- ()
CoZBatchÝE¨: ./CoZBatch.C(404) - fopen(//DD:STDIN,rt) - Ý21¨ EDC5021I The file attributes for open create an invalid
combination. (errno2=0xC00B020F)
CoZBatchÝW¨: an error occurred; returning rc=101
******************************** BOTTOM OF DATA ********************************
Re: CoZBatch fopen error
This is a problem where the IBM C library cannot open DD STDIN.
Check this DD in your JCL. If you have a concatenation, check that it is valid (the datasets use compatible RECFM/LRECL).
Check this DD in your JCL. If you have a concatenation, check that it is valid (the datasets use compatible RECFM/LRECL).