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

JCL Parameters....


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 150
Location: Tokyo, Japan

PostPosted: Tue Apr 06, 2004 3:41 pm
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
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: 150
Location: Tokyo, Japan

PostPosted: Thu Apr 08, 2004 1:41 pm
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
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: 150
Location: Tokyo, Japan

PostPosted: Fri Apr 09, 2004 11:30 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts passing symbolic parameters through d... JCL & VSAM 3
No new posts Trim values of parameters in JCL JCL & VSAM 2
No new posts Alter User LOGON Script Parameters CLIST & REXX 11
Search our Forums:

Back to Top