Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 4650
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us