Here is JCL SYSIN card with DD* and DD DATA. in DD*, you can’t pass special characters, but in DD DATA you can pass. How this is possible, I have explained here.
How to Write SYSIN in JCL
In Jcl Sysin card is very popular. We can pass data from jcl to COBOL program using SYSIN.
//sysin dd *
abc
/*
In the COBOL program, you can accept the data as below:
ACCEPT ABCD-1 from SYSIN.
So the data in SYSIN is pulled into ABCD-1.
How to Pass Special Characters in SYSIN DD DATA
But in DD* you can not give special chars like /*
//SYSIN DD DATA, ddl="ABC'
/*
ABC
We can give special chars in DD DATA. Here ‘/*’ is input.
Related Posts