View previous topic :: View next topic
|
Author |
Message |
shr_amar Warnings : 2 Active User
Joined: 02 May 2005 Posts: 128 Location: UK
|
|
|
|
Hi
I have compiled and created loadlib of a rexx and now executing REXX by JCL(PGM=IKJEFT1B). Can anyone tellhow to give File name(which is used in REXX) in JCL as we have select clause in COBOL.
Regards |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Using the PARM statement on the EXEC card is usually how I do it.
//BATCHTSO EXEC IKJEFT01,PARM='Execname datasetname' |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I believe you need the DD card in order to assign a physical dataset to a logical name.
O. |
|
Back to top |
|
|
shr_amar Warnings : 2 Active User
Joined: 02 May 2005 Posts: 128 Location: UK
|
|
|
|
It will really help me , If there is example how we have to receive in REXX .
Suppose we are using 3 dataset in REXX , How to pass it in JCL and how to receive in REXX ?
Thanks In adavance |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
why not allocate thru ddname and use the ddname
Code: |
// exec pgm=ikj...,parm="rexxscriptname"
//....
//dd1 dd dsn=.....
//dd2 dd dsn=.....
//dd2 dd dsn=..... |
and inside Your rexx
Code: |
....
execio * diskr dd1 ...
execio * diskr dd2 ...
execio * diskr dd3 ....
.... |
|
|
Back to top |
|
|
shr_amar Warnings : 2 Active User
Joined: 02 May 2005 Posts: 128 Location: UK
|
|
|
|
I have tried code you have mentioned .
execio * diskr dd1 ...
What is this ..... Is this is the name of Dataset .Then i think there is no benifit to pass File name in JCL .
Can you clear the doubt
Regards |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
Back to top |
|
|
|