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
 

 

How to pass file name Via JCL to REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 126
Location: UK

PostPosted: Mon Jan 28, 2008 4:51 pm    Post subject: How to pass file name Via JCL to REXX
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jan 28, 2008 5:11 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Mon Jan 28, 2008 5:19 pm    Post subject:
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: 126
Location: UK

PostPosted: Mon Jan 28, 2008 5:21 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Mon Jan 28, 2008 5:31 pm    Post subject: Reply to: How to pass file name Via JCL to REXX
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: 126
Location: UK

PostPosted: Mon Jan 28, 2008 5:45 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Mon Jan 28, 2008 5:53 pm    Post subject: Reply to: How to pass file name Via JCL to REXX
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


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