Limit to pass the data in COBOL using SYSIN?
Limit to pass the data in COBOL using SYSIN?
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?
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?
-
- Global Moderator
- Posts: 836
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Limit to pass the data in COBOL using SYSIN?
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
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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
- Robert Sample
- Global Moderator
- Posts: 1899
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Limit to pass the data in COBOL using SYSIN?
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.I'm not sure if it's 137 characters?
Re: Limit to pass the data in COBOL using SYSIN?
Thanks. But does it change as per the operating system. We are on zOS 2.1?
- Robert Sample
- Global Moderator
- Posts: 1899
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Limit to pass the data in COBOL using SYSIN?
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).
- Robert Sample
- Global Moderator
- Posts: 1899
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Limit to pass the data in COBOL using SYSIN?
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?
Akshypal,
What do you mean? Did you not read the manual extract quoted by Robert? Are you saying that the manual is wrong?
What do you mean? Did you not read the manual extract quoted by Robert? Are you saying that the manual is wrong?
Regards
Nic
Nic
-
- Global Moderator
- Posts: 836
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Limit to pass the data in COBOL using SYSIN?
looks like the typical case where a TS does not care about the answers received unless they agree with his expectations
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
- Robert Sample
- Global Moderator
- Posts: 1899
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Limit to pass the data in COBOL using SYSIN?
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.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute