Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

accept data from SYSIN and PARM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: accept data from SYSIN and PARM
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 14, 2010 3:09 pm    Post subject:
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    Post subject:
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: 2435
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 14, 2010 3:13 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 14, 2010 3:18 pm    Post subject:
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: 2435
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 14, 2010 3:19 pm    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Tue Dec 14, 2010 4:57 pm    Post subject:
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

Site Director


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

PostPosted: Tue Dec 14, 2010 8:52 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Dec 15, 2010 3:35 pm    Post subject:
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:

http://www.ibmmainframes.com/viewtopic.php?t=39783&highlight=parm+100
http://www.ibmmainframes.com/viewtopic.php?t=39838&highlight=parm+100
http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us