Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : Using parameter AMP='AMORG' , we can communicate to OS to treat the DUMMY file as VSAM file. Ex. //VSAMFILE DD DUMMY, AMP='AMORG'

Google
 
Web mainframegurukul.com


Visit mainframe jobs page to search mainframes jobs on top job websites.


what is the length of PARM parameter in jcl

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL
  View previous topic :: View next topic  
Author Message
mainframe5
Active Member


Joined: 24 Jul 2007
Posts: 59

PostPosted: Wed Jan 09, 2008 7:22 pm    Post subject: what is the length of PARM parameter in jcl Reply with quote

what is the length of PARM parameter in jcl
Back to top
View user's profile Send private message Send e-mail

DavidatK
Active Member


Joined: 27 Mar 2007
Posts: 65
Location: Troy, MI USA

PostPosted: Thu Jan 10, 2008 2:36 am    Post subject: Reply with quote

MF5,

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

Dave
Back to top
View user's profile Send private message
pankaj_zenith2008
Member


Joined: 29 Jul 2009
Posts: 23
Location: chennai, Bangalore

PostPosted: Fri Aug 14, 2009 5:19 pm    Post subject: question based upon this Reply with quote

how to pass value using parm, with length more than 100, this question was asked to me in IBM interview.
Back to top
View user's profile Send private message Yahoo Messenger
MrSpock
Active Member


Joined: 27 Jun 2007
Posts: 93

PostPosted: Fri Aug 14, 2009 6:06 pm    Post subject: Reply with quote

I'm curious what your response was. The limit is the limit, and I wonder why they would ask such a question?
Back to top
View user's profile Send private message
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 742
Location: Mumbai, India

PostPosted: Sat Aug 15, 2009 12:51 pm    Post subject: Reply with quote

Probably they were looking if interviewee knows about
Code:
//SYSIN DD *
, just a thought...
_________________
Anuj


//MYWALLET EXEC PGM=SPOUSE
//SYSIN DD DSN=MYWALLET.ALL,DISP=SHR
//SYSOUT DD DUMMY
Back to top
View user's profile Send private message
balu1205
Member


Joined: 09 Sep 2009
Posts: 2
Location: Bangalore

PostPosted: Tue Oct 06, 2009 8:46 pm    Post subject: Reply with quote

By using the PARM parameter we can pass 100 bytes... 98 characters and 2 bytes for passing length...
_________________
balu
Back to top
View user's profile Send private message Yahoo Messenger
pankaj_zenith2008
Member


Joined: 29 Jul 2009
Posts: 23
Location: chennai, Bangalore

PostPosted: Wed Nov 25, 2009 8:02 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Yahoo Messenger
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 742
Location: Mumbai, India

PostPosted: Wed Nov 25, 2009 7:39 pm    Post subject: Reply with quote

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

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


//MYWALLET EXEC PGM=SPOUSE
//SYSIN DD DSN=MYWALLET.ALL,DISP=SHR
//SYSOUT DD DUMMY
Back to top
View user's profile Send private message
vaibhavad
Member


Joined: 28 Jan 2010
Posts: 2

PostPosted: Thu Jan 28, 2010 4:20 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 742
Location: Mumbai, India

PostPosted: Fri Jan 29, 2010 2:29 pm    Post subject: Reply with quote

Quote:
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.
_________________
Anuj


//MYWALLET EXEC PGM=SPOUSE
//SYSIN DD DSN=MYWALLET.ALL,DISP=SHR
//SYSOUT DD DUMMY
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts HOW TO CAPTURE JOBLOG THROUGH JCL 1 mithunthakre 4107 Tue Mar 10, 2009 7:37 pm
Anuj Dhawan View latest post
No new posts Submit a JCL thru Cobol 3 Sarthak 5950 Thu Dec 21, 2006 3:00 pm
Krishna View latest post
No new posts IAM BEGINNER IN JCL ...PLZ HELP ME 2 Guest 9805 Sun May 14, 2006 6:10 pm
Guest View latest post
No new posts I need a JCL to delete the last 6 lines of all the members i 0 osurendhra 6401 Tue Feb 21, 2006 2:05 pm
osurendhra View latest post
No new posts JCL FAQ 0 Rupesh.KOthari 3289 Thu Feb 16, 2006 6:06 pm
Rupesh.KOthari View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB