View previous topic :: View next topic
|
Author |
Message |
Manojtyagi1979
New User
Joined: 25 Jan 2010 Posts: 11 Location: Noida
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Manojtyagi1979
New User
Joined: 25 Jan 2010 Posts: 11 Location: Noida
|
|
|
|
I have searched the manual. it does not say anything about what i have asked here.
regards
Manoj |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Try running the job with the first 50 characters of the parm, and
the again with the second 50 characters of the parm. |
|
Back to top |
|
|
Manojtyagi1979
New User
Joined: 25 Jan 2010 Posts: 11 Location: Noida
|
|
|
|
This is Wrong answer. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Why is that? I do it all the time with long parameters. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
|