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
 

 

JCL Parameters....

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
PrasadV

New User


Joined: 21 Mar 2004
Posts: 8
Location: Chennai

PostPosted: Sat Apr 03, 2004 3:08 pm    Post subject: JCL Parameters....
Reply with quote

Hi gurus(JCL),

1. What does & in jcl refer to?



2. How to Assign a value to a parameter in jcl?

Assign or Initialize or set or something else?
pls. let me know. icon_sad.gif
Back to top
View user's profile Send private message

bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Mon Apr 05, 2004 4:56 pm    Post subject:
Reply with quote

hello,

1 I don't understand the question

2 it depends on how the program receives parameters.
here is an example with pgm SDSF (IBM standard spool and system
display utility) :
Code:

//STEP1    EXEC PGM=SDSF,PARM='++60,236'


basically, you use parm parameter followed by the quoted values ('').
U need to know the format of the parm from the utility documention

but Some programs receive parm thru DD statement sysin.

hope it clarifies a bit
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 151
Location: Tokyo, Japan

PostPosted: Tue Apr 06, 2004 3:41 pm    Post subject:
Reply with quote

"&" generally refers to temporary dataset in JCL.
Back to top
View user's profile Send private message
bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Tue Apr 06, 2004 7:50 pm    Post subject:
Reply with quote

thank you sandip...

now I understand question...
but & is actually for parameter either SYS (SYSUID and so on) or in a procedure ...
I suppose your jcl was a procedure and the name prefixed with & (ampersand) is an overridable name meaning it can be replaced by a value on the call of procedure.

temporary dataset are actually prefixed by &&
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 151
Location: Tokyo, Japan

PostPosted: Thu Apr 08, 2004 1:41 pm    Post subject:
Reply with quote

Yes Bluebird...you are right...It's my mistake...
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Apr 09, 2004 12:43 am    Post subject:
Reply with quote

Sandip & Bluebird,

Actually, you're both correct. An & can denote either a symbolic parameter, a system parameter or a temporary dataset. If the & appears at the beginning of the DSN param (e.g. DSN=&acbd) and there is no &abcd referenced in the proc stmt and it doesn't appear in the proc exec stmt and it isn't a system param, the reference (e.g. &abc) will be assumed to be a temp dataset.

Of course && is the preferred form for temp datasets, but you will sometimes see a single & used for a temp ds.

Regards, Jack.
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 151
Location: Tokyo, Japan

PostPosted: Fri Apr 09, 2004 11:30 am    Post subject:
Reply with quote

Thanks Jack for sharing your valuable knowledge.

Best Regards,
Sandip.
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 LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Multiple parameters Csongor All Other Mainframe Topics 16 Thu Jun 09, 2016 7:54 pm
No new posts SYSUT2 - CONFLICTING DCB PARAMETERS raulravi7 JCL & VSAM 6 Thu May 19, 2016 9:43 am


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