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.
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.
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.