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

passing file name to a rexx exec from jcl...


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

New User


Joined: 13 Feb 2007
Posts: 54
Location: Pune India

PostPosted: Tue Aug 07, 2007 3:09 pm
Reply with quote

Hi,
I want to pass 2 file names as a parameter to a rexx utiluty which will use those files as inputs and process them.
I have used this JCl to run the utility
how shall i include the two datafiles with their dd names????


//JOBSTEP EXEC PGM=IKJEFT01
//SYSPROC DD DSN=UKTEST.W.COG.CMDPROC,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
%OUTREP
/*
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Aug 07, 2007 5:04 pm
Reply with quote

You can allocate the datasets in the JCL as always (DD statement), and simply use EXECIO with the DDNAME in your REXX to process them.

Another option is to use LISTALC from your REXX and parse the results.


O.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top