MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Passing the parameters from REXX panel to jcl

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
raj24186
Beginner


Joined: 04 May 2010
Posts: 3
Topics: 1

PostPosted: Wed Jul 21, 2010 5:42 am    Post subject: Passing the parameters from REXX panel to jcl Reply with quote

Hi folks,

I have designed a panel through REXX that will accept a particular date. i need to pass this date value to a job, where it will be used in a Sort card. The ISREDIT command allows only replacement of data that is hard-coded in this command. Can someone tell me if there is any other method, where I can dynamically accept the value(through panel) and implant it in my jcl?
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Jul 21, 2010 6:24 am    Post subject: Reply with quote

You haven't provided any details to even venture a reasonable guess. What does ISREDIT have to do with this? Where is this JCL? Are you creating the JCL entirely (in which case I don't understand your question)? Are you using ISPF File Tailoring Skeletons (again, in which case I don't understand your question)? Can't you just edit the JCL and add your data? Can you write it to a system library that your JCL can access and read from?
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Jul 21, 2010 6:24 am    Post subject: Reply with quote

Try File Tailoring
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Jul 21, 2010 6:25 am    Post subject: Reply with quote

or update the job to be submitted in its PDS and submit it
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
raj24186
Beginner


Joined: 04 May 2010
Posts: 3
Topics: 1

PostPosted: Wed Jul 21, 2010 12:39 pm    Post subject: Reply with quote

Superk,

I browsed thro the forum for alternatives of passing parameter values from REXX onto jcl. I have already created the JCL that implements my functionality. The procedure that I am looking to build is:

1) Accept a value(in my case, the date) from the user thro panel(already constructed)

2) This value must then be passed onto Job(also constructed), and replace another already existing date value in a SORT card, in a particular step. I tried implementing ISREDIT option in another REXX pgm to automatically change the date and save the changes in the JCL. But I saw that this command allows only changes for hard-coded values in the REXX pgm, which does not suit my requirement.

I am trying to bridge the gap between the REXX pgm and the JCL. I would be submitting the JCL after the changes are done. Please let me know in case you require any further details.

Thanks.
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Wed Jul 21, 2010 1:37 pm    Post subject: Reply with quote

Quote:

I tried implementing ISREDIT option in another REXX pgm to automatically change the date and save the changes in the JCL. But I saw that this command allows only changes for hard-coded values in the REXX pgm, which does not suit my requirement.


Which command are you talking about? Show how you used it?
_________________
Regards,
Diba
Back to top
View user's profile Send private message Send e-mail
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jul 21, 2010 2:09 pm    Post subject: Reply with quote

you could try to define the job in your REXX,
then modify what is necessary - within the REXX space,
then write/execute the JOB from the REXX.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
raj24186
Beginner


Joined: 04 May 2010
Posts: 3
Topics: 1

PostPosted: Thu Jul 22, 2010 12:35 am    Post subject: Reply with quote

I was referring to :

ADDRESS ISREDIT "CHANGE "'date'" &DATE ALL"

Can this command accept dynamic values??
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Jul 22, 2010 5:14 am    Post subject: Reply with quote

ADDRESS ISREDIT "CHANGE 'date' " datevar "ALL"
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Thu Jul 22, 2010 5:22 am    Post subject: Re: Passing the parameters from REXX panel to jcl Reply with quote

raj24186 wrote:
I have designed a panel through REXX that will accept a particular date. i need to pass this date value to a job, where it will be used in a Sort card.
You have NOT designed a panel through REXX, you have used ISPF to create a panel.

The variable name given in the panel will be equally valid for any REXX that works after the panel has been displayed.

From your last post it appears that you are then using an ISPF edit macro then the usual way of passing values to an edit macro is using VPUT and VGET
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group