Page 1 of 1

Limit to pass the data in COBOL using SYSIN?

Posted: Fri Mar 24, 2017 12:28 pm
by utkarsh
Hi,

Can someone please help me to know that what is the limit to pass the data from SYSIN to COBOL? I'm not sure if it's 137 characters?

Re: Limit to pass the data in COBOL using SYSIN?

Posted: Fri Mar 24, 2017 1:30 pm
by enrico-sorichetti
the buzzword is device independence
a program will not be aware of the source of a PS dataset

so COBOL has NOTHING to do with the record length

it depends on the way You <submit> the jcl

see here
https://www.ibm.com/support/knowledgece ... ters9.html


moved to the JCL section

Re: Limit to pass the data in COBOL using SYSIN?

Posted: Fri Mar 24, 2017 4:31 pm
by Robert Sample
I'm not sure if it's 137 characters?
It is good that you are not sure, because the limit is not 137 characters. As stated by enrico, the actual limit varies by how the job is submitted, whether the site uses JES2 or JES3, and site-dependent parameters.

Re: Limit to pass the data in COBOL using SYSIN?

Posted: Thu Nov 09, 2017 5:46 pm
by utkarsh
Thanks. But does it change as per the operating system. We are on zOS 2.1?

Re: Limit to pass the data in COBOL using SYSIN?

Posted: Thu Nov 09, 2017 6:04 pm
by Robert Sample
There may be increases in the limit as the operating system changes, but I don't think there have been any changes in the in-stream limit for quite some time (as in years / decades).

Re: Limit to pass the data in COBOL using SYSIN?

Posted: Thu Nov 09, 2017 8:33 pm
by Robert Sample
From the z/OS V2R1 JES Application Programming manual:
Record length of SYSIN data sets

z/OS JES Application Programming
SA32-0987-00

Jobs can include input data in SYSIN data sets. In JES2, the maximum length of a record written to the internal reader is 32760 bytes. In JES3, the maximum length is the installation defined buffer size. These can be processed locally or sent to other nodes through NJE. Some NJE nodes do not support SYSIN records that are greater than 254 bytes (in JES2) or 80 characters (in JES3) in length. When data is sent to one of these nodes, the SYSIN records will be truncated to 254 bytes (in JES2) or 80 characters (in JES3). Before attempting to send long SYSIN records to a node, ensure that the node and any intermediate node support long SYSIN records (for example, by sending a test).

Re: Limit to pass the data in COBOL using SYSIN?

Posted: Fri Mar 30, 2018 11:29 pm
by Akshypal
Is not it 100?

Re: Limit to pass the data in COBOL using SYSIN?

Posted: Sat Mar 31, 2018 5:39 pm
by nicc
Akshypal,
What do you mean? Did you not read the manual extract quoted by Robert? Are you saying that the manual is wrong?

Re: Limit to pass the data in COBOL using SYSIN?

Posted: Sat Mar 31, 2018 6:44 pm
by enrico-sorichetti
looks like the typical case where a TS does not care about the answers received unless they agree with his expectations

Re: Limit to pass the data in COBOL using SYSIN?

Posted: Sat Mar 31, 2018 7:50 pm
by Robert Sample
Akshypal, the limit of 100 applies ONLY to PARM= values. And with the latest operating system releases, if you need more than 100 bytes in your PARM there is a way to pass up to 32,760 bytes as a PARM. SYSIN may not refer to a PARM -- it could be used with an ACCEPT in COBOL -- and hence the maximum record length of SYSIN records is what was discussed.