Limit to pass the data in COBOL using SYSIN?

JES2/3, JCL, utilities.
Post Reply
utkarsh
Registered Member
Posts: 64
Joined: Fri Jun 21, 2013 10:32 pm

Limit to pass the data in COBOL using SYSIN?

Post 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?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

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

Post 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
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 8-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

Post 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.
utkarsh
Registered Member
Posts: 64
Joined: Fri Jun 21, 2013 10:32 pm

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

Post by utkarsh »

Thanks. But does it change as per the operating system. We are on zOS 2.1?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

Post 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).
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

Post 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).
Akshypal
Registered Member
Posts: 54
Joined: Sun Jun 16, 2013 9:51 am

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

Post by Akshypal »

Is not it 100?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

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

Post 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?
Regards
Nic
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

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

Post by enrico-sorichetti »

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 8-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

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

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

Register

Sign in

Return to “JCL - Job Control Language.”