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

How to pass file name Via JCL to REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 128
Location: UK

PostPosted: Mon Jan 28, 2008 4:51 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jan 28, 2008 5:11 pm
Reply with quote

Using the PARM statement on the EXEC card is usually how I do it.

//BATCHTSO EXEC IKJEFT01,PARM='Execname datasetname'
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Jan 28, 2008 5:19 pm
Reply with quote

I believe you need the DD card in order to assign a physical dataset to a logical name.

O.
Back to top
View user's profile Send private message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 128
Location: UK

PostPosted: Mon Jan 28, 2008 5:21 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Jan 28, 2008 5:31 pm
Reply with quote

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
View user's profile Send private message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 128
Location: UK

PostPosted: Mon Jan 28, 2008 5:45 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Jan 28, 2008 5:53 pm
Reply with quote

this is a reasonable reply to Your question

You think wrong

the quotes were not to be used literally just hints

I assumed that You had a little bit of knowledge about REXX
and the manuals to look at the syntax of the EXECIO

search the forums using the EXECIO word and You will find a lot of samples

or here is an url for the tso rexx docs

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IKJOSE20

do not complain about being an old release, it is more than enough for the current needs

anyway here is a pointer to the top page for ibm manuals
http://www-03.ibm.com/servers/s390/os390/bkserv/v2r9books.html
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top