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
 

 

REXX- pass the information to the Rexxprogram using PARM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: REXX- pass the information to the Rexxprogram using PARM
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

Moderator Team Head


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

PostPosted: Wed Oct 25, 2006 3:33 pm    Post subject: Re: REXX- pass the information to the Rexxprogram using PARM
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    Post subject:
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    Post subject: Re: REXX- pass the information to the Rexxprogram using PARM
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    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Oct 26, 2006 4:06 pm    Post subject: Re: REXX- pass the information to the Rexxprogram using PARM
Reply with quote

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

http://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    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 REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 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 JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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