what is the length of PARM parameter in jcl
Moderators: dbzTHEdinosauer, Moderator Group
-
- Active Member
- Posts: 59
- Joined: Tue Jul 24, 2007 7:25 pm
what is the length of PARM parameter in jcl
what is the length of PARM parameter in jcl
-
- Member
- Posts: 23
- Joined: Wed Jul 29, 2009 4:54 pm
- Location: chennai, Bangalore
question based upon this
how to pass value using parm, with length more than 100, this question was asked to me in IBM interview.
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Probably they were looking if interviewee knows about , just a thought...
Code: Select all
//SYSIN DD *
Regards,
Anuj
Anuj
-
- Member
- Posts: 23
- Joined: Wed Jul 29, 2009 4:54 pm
- Location: chennai, Bangalore
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
yes we need seperate accept statement for each line in sysin data. I think max limit to pass sysin data is 137 characters
for JCL PARM its 100 characters.
if we want to pass more we use the "call... using" for the same program instead of JCL-PARM .... limit to passing data through CALL-USING is 32K characters
last one is through external variables for which the limit remains 64K characters
if we want to eliminate the size limit i.e. still need more data... we pass using the files or database
for JCL PARM its 100 characters.
if we want to pass more we use the "call... using" for the same program instead of JCL-PARM .... limit to passing data through CALL-USING is 32K characters
last one is through external variables for which the limit remains 64K characters
if we want to eliminate the size limit i.e. still need more data... we pass using the files or database
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
1. Just treat SYSIN as any other file - code a SELECT and FD statements, OPEN/READ/CLOSE. The reference name in the SELECT statement is SYSIN.and i guess for each row in sysin - we have to write accapt statement in cobol pgm,
2. If you want to use ACCEPT, code an EOF rec in the input stream. You can use "END" or any other character(s) that you're sure won't appear as valid I/P. Then check for it after every ACCEPT to stop the loop.
In this case you you don't need OPEN/CLOSE.
Regards,
Anuj
Anuj
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page