what is the length of PARM parameter in jcl

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
mainframe5
Active Member
Posts: 59
Joined: Tue Jul 24, 2007 7:25 pm

what is the length of PARM parameter in jcl

Post by mainframe5 » Wed Jan 09, 2008 7:22 pm

what is the length of PARM parameter in jcl

User avatar
DavidatK
Active Member
Posts: 65
Joined: Tue Mar 27, 2007 8:41 am
Location: Troy, MI USA

Post by DavidatK » Thu Jan 10, 2008 2:36 am

MF5,

the max length of a parm in JCL is 100 characters.

Dave

pankaj_zenith2008
Member
Posts: 23
Joined: Wed Jul 29, 2009 4:54 pm
Location: chennai, Bangalore

question based upon this

Post by pankaj_zenith2008 » Fri Aug 14, 2009 5:19 pm

how to pass value using parm, with length more than 100, this question was asked to me in IBM interview.

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Fri Aug 14, 2009 6:06 pm

I'm curious what your response was. The limit is the limit, and I wonder why they would ask such a question?

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Sat Aug 15, 2009 12:51 pm

Probably they were looking if interviewee knows about

Code: Select all

//SYSIN DD *
, just a thought...
Regards,
Anuj

balu1205
Member
Posts: 2
Joined: Wed Sep 09, 2009 5:30 pm
Location: Bangalore

Post by balu1205 » Tue Oct 06, 2009 8:46 pm

By using the PARM parameter we can pass 100 bytes... 98 characters and 2 bytes for passing length...
balu

pankaj_zenith2008
Member
Posts: 23
Joined: Wed Jul 29, 2009 4:54 pm
Location: chennai, Bangalore

Post by pankaj_zenith2008 » Wed Nov 25, 2009 8:02 am

yes anuj, now i came to know that he was lookin for sysin an the answer, and i guess for each row in sysin - we have to write accapt statement in cobol pgm,

correct me if i supposed wrong

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Nov 25, 2009 7:39 pm

Glad to hear that you find it out what interviewr was looking for, but quite surprising at this stage...:)

Why don't you play around a bit with ACCEPT verb to know what you asked for?
Regards,
Anuj

vaibhavad
Member
Posts: 2
Joined: Thu Jan 28, 2010 4:01 pm

Post by vaibhavad » Thu Jan 28, 2010 4:20 pm

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

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Fri Jan 29, 2010 2:29 pm

and i guess for each row in sysin - we have to write accapt statement in cobol pgm,
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.

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

academyindia4

Topic deleted by Admin

Post by academyindia4 » Wed Jan 27, 2016 8:28 pm

<< Content deleted By Admin >>

academyindia4

Topic deleted by Admin

Post by academyindia4 » Wed Feb 03, 2016 12:47 am

<< Content deleted By Admin >>

Post Reply

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



Other References
Mainframe Tools and others