IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

accept data from SYSIN and PARM


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Manojtyagi1979

New User


Joined: 25 Jan 2010
Posts: 11
Location: Noida

PostPosted: Tue Dec 14, 2010 2:44 pm
Reply with quote

Hi All,

I have few small doubts regarding the PARM parameter in JCL

1. We know that PARM can have max length of data as 100 (including (,) in between). But the JCL allows max length of Data on a line to be of 71 Characters. So how can we pass a data of 100 characters through PARM field ? How we will do line continuation for this case ?

2. If i am sending 2 string PARM=(ABCD,DEFG). Then inside the linkage section, is it required to give room (add a filler position) for the (,) as we know that intermediate (,) are also counted when passing data from PARM parameter.

My environment of mainframe requires me to declare 3 variable in linkage section - 2 for the Strings and one for (,). Is it true for other mainframe environment.

Please reply.

Thanks
Manoj Tyagi
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 14, 2010 3:09 pm
Reply with quote

What does it say in the JCL reference manual, easily reached by clicking the "IBM Manuals" button at the top of any page.
Back to top
View user's profile Send private message
Manojtyagi1979

New User


Joined: 25 Jan 2010
Posts: 11
Location: Noida

PostPosted: Tue Dec 14, 2010 3:12 pm
Reply with quote

I have searched the manual. it does not say anything about what i have asked here.

regards
Manoj
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 14, 2010 3:13 pm
Reply with quote

Try running the job with the first 50 characters of the parm, and
the again with the second 50 characters of the parm. icon_eek.gif
Back to top
View user's profile Send private message
Manojtyagi1979

New User


Joined: 25 Jan 2010
Posts: 11
Location: Noida

PostPosted: Tue Dec 14, 2010 3:14 pm
Reply with quote

This is Wrong answer.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 14, 2010 3:18 pm
Reply with quote

Manojtyagi1979 wrote:
This is Wrong answer

Manojtyagi1979 wrote:
I have searched the manual. it does not say anything about what i have asked here.
Please DO NOT tell porkie pies.

It has taken me about 60 seconds to find out EXACTLY how to do what you want to do using the manual I told you to go and read.

"HELP FORUM" NE "DO IT FOR ME FORUM"
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 14, 2010 3:19 pm
Reply with quote

Why is that? I do it all the time with long parameters. icon_redface.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 14, 2010 4:57 pm
Reply with quote

Manoj, your search skills need improvement. Try searching the JCL Language Reference manual for continuation -- you will find the manual explicitly tells you how to pass parameters that are longer than will fit on a single line. You may have to read every returned reference, but you will find it, eventually.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Dec 14, 2010 8:52 pm
Reply with quote

Hello,

Quote:
My environment of mainframe requires me to declare 3 variable in linkage section - 2 for the Strings and one for (,). Is it true for other mainframe environment.
Sounds like a local "rule".

Most of the programs that process a PARM in the JCL (on this one of my systems) define the length and then one field for the parameter data (which is redefined if there are multiple fields in the parm).

Quote:
I have searched the manual. it does not say anything about what i have asked here.
As happens very often, people who want to search for themself are not able because they are not aware of the actual term they are trying to find. . . As Robert mentioned, searching is a skill to be worked on. It is often more tedious searching in a particular manual as the author of the manual assumes the reader knows most/all of the terminology in the language used to write the manual.

I suspect it will be frustrating for a while icon_cool.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Dec 15, 2010 3:35 pm
Reply with quote

I searched for "parm and 100" in the JCL part of the Forum and the very first link has enough info, Manoj:

www.ibmmainframes.com/viewtopic.php?t=39783&highlight=parm+100
www.ibmmainframes.com/viewtopic.php?t=39838&highlight=parm+100
www.ibmmainframes.com/viewtopic.php?t=39860&highlight=parm+100
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top