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

REXX- pass the information to the Rexxprogram using PARM


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

New User


Joined: 16 Nov 2005
Posts: 23

PostPosted: Wed Oct 25, 2006 3:10 pm
Reply with quote

Hi,

DSN1='FDWS01.GANGA.RECON.OUT'

"ALLOC DSNAME('"||DSN1||"') MOD SPACE(1,1) TRACKS RELEASE DDNAME(DD01)"

I am using the above commands in my REXX program ,i want to pass the information for DSN1 by using the JCL PARM parameter..please help me on that ,how can send the datasets by using the Parm parameter.Thanks
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Oct 25, 2006 3:33 pm
Reply with quote

Is this what you're looking for?
Back to top
View user's profile Send private message
ganga79

New User


Joined: 16 Nov 2005
Posts: 23

PostPosted: Wed Oct 25, 2006 4:11 pm
Reply with quote

Releasing the Unused space from the Datasets..By passing the information through SYSIN DD* or Parm parameter...Please let me know if you have any questions.Thanks.
Regards,
Ganga
Back to top
View user's profile Send private message
karthikraman_m

New User


Joined: 10 Jun 2005
Posts: 12
Location: India

PostPosted: Wed Oct 25, 2006 5:28 pm
Reply with quote

Hi,

Parms can be passed to the REXX program from JCL just like command line arguments in other languages. The TESTPARM in the following REXX program execution step is an argument passed to the program.

ISPSTART CMD(%REXXPROG TESTPARM)

In the REXX execution step in JCL, give TESTPARM="HQL.HQL2.Q"

Inside the REXX program, add the Arg command,

/** Rexx **/
Arg DSN

Now, DSN should contain whatever you provided for TESTPARM in the JCL.

Thanks,
Karthik Raman
Back to top
View user's profile Send private message
ganga79

New User


Joined: 16 Nov 2005
Posts: 23

PostPosted: Thu Oct 26, 2006 2:19 pm
Reply with quote

I coded the JCL by using ISPSTART
Code:

//SYSPROC  DD   DSN=FDWS01.WORK.JCL,DISP=SHR       
//TESTPARM DD   DSN=FDWS01.GANGA.RECON.OUT,DISP=SHR
//SYSTSPRT DD   SYSOUT=*                           
//SYSDUMP  DD   SYSOUT=*                           
//SYSUDUMP DD   SYSOUT=*                           
//SYSOUT   DD   SYSOUT=*                           
//*                                               
//SYSTSIN   DD   *                                 
ISPSTART CMD('FDWS01.WORK.JCL(SAMREX5)' TESTPARM) 

it is giving MAXCC=998,and Spoll having this message

READY
ISPSTART CMD('FDWS01.WORK.JCL(SAMREX5)' TESTPARM)
ISPI003 Following file was not preallocated:
ISPPROF
if coded the jcl wrongly ,correct me...

Thanks
Ganga
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Oct 26, 2006 4:06 pm
Reply with quote

You've already been provided a fix for this same problem in your other post:

ibmmainframes.com/viewtopic.php?t=14590&highlight=
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top