I/O ERROR ON CMSYNIN INPUT FILE

Hi,

I have written a program that writes parameters to a flat file. The program writes the following to the flat file:

EXEC PGMNAME
LOGON LIBNAME
FIN

The jcl will then then look like
//NATCATC1 EXEC PGM=NATBATCH,REGION=4M,
// PARM=(‘STACK=(LOGON &DBLIB,&UID,&PSW),DBID=128,AUTO=OFF’)
.
.
//CMSYNIN DD DSN=DBMS0E.DBMS.EXTRACT.&DBLIB…PGMLST,DISP=OLD which was created earlier.

Please help.
Regards

Hi Kugh,

Could you please provide the error message from the joblog ?

Aldo

The error from job log: IEC141I 013-20,IGG0191A…
I have checked this on mvs manual and it basically says that the BLKSIZE is not 4 bytes greater than LRECL when RECFM is V.
I allocated as RECFM=VB,LRECL=4624,BLKSIZE=4628/4632.
I still end up with NAT9999 I/O ERROR ON CMSYNIN INPUT FILE.

Regards

Did you try to allocate as RECFM=FB,LRECL=80,BLKSIZE=…

Yes I did allocate as suggested and it works perfect. I allocated with LRECL of 16 since I needed to limit the amount of the variable length in the program that reads the work file.

Thanks for the help.