Joined: 07 Aug 2006 Posts: 128 Location: kerala,india
SYSIN DD is used incase of instream data such as those data that we needed
to pass when the program runtime eg:ACCEPT parm is used to pass value from JCL to cobol .In case of parm we had to declare variables at linkage section
1) using JCL with sysin. //sysin dd *here u code the parameters(value) to pass in to cobol program /* and in program
you use accept variable name(one accept will read one row)/.another way.
2) in jcl using parm statement ex: in exec statement parm='whatever' in cobol pgm u have to code linkage section in that for first value you code length variable and variable name say, abc pic x(4).it will take john inside to read next value u have to code another variable in the same way above mentioned.
Normally there are several ways to code the same logic and some ways are better than the other in terms or size, effectiveness, readability and ease of modification.
IBM-MAIN:there is 100-character limitation on PARM size in JCL. but is not the same case with sysin dd *