View previous topic :: View next topic
|
Author |
Message |
PrasadV
New User
Joined: 21 Mar 2004 Posts: 8 Location: Chennai
|
|
|
|
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. |
|
Back to top |
|
|
bluebird
Active User
Joined: 03 Feb 2004 Posts: 127
|
|
|
|
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 |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
"&" generally refers to temporary dataset in JCL. |
|
Back to top |
|
|
bluebird
Active User
Joined: 03 Feb 2004 Posts: 127
|
|
|
|
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 |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
Yes Bluebird...you are right...It's my mistake... |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
Thanks Jack for sharing your valuable knowledge.
Best Regards,
Sandip. |
|
Back to top |
|
|
|