Limit to pass the data in COBOL using SYSIN?

JES2/3, JCL, utilities.
Previous topicNext topic

Topic Author
utkarsh
Registered Member
Posts: 31
Joined: Fri Jun 21, 2013 10:32 pm
Zodiac: Sagittarius

Limit to pass the data in COBOL using SYSIN?

Post by utkarsh » Fri Mar 24, 2017 12:28 pm

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: 875
Joined: Wed Sep 11, 2013 3:57 pm

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

Post by enrico-sorichetti » Fri Mar 24, 2017 1:30 pm

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: 1331
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

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

Post by Robert Sample » Fri Mar 24, 2017 4:31 pm

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.




Topic Author
utkarsh
Registered Member
Posts: 31
Joined: Fri Jun 21, 2013 10:32 pm
Zodiac: Sagittarius

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

Post by utkarsh » Thu Nov 09, 2017 5:46 pm

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: 1331
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

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

Post by Robert Sample » Thu Nov 09, 2017 6:04 pm

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: 1331
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

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

Post by Robert Sample » Thu Nov 09, 2017 8:33 pm

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).



Previous topicNext topic

Return to “JCL - Job Control Language.”