View previous topic :: View next topic |
Author |
Message |
raj24186 Beginner
Joined: 04 May 2010 Posts: 3 Topics: 1
|
Posted: Wed Jul 21, 2010 5:42 am Post subject: Passing the parameters from REXX panel to jcl |
|
|
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 |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Jul 21, 2010 6:24 am Post subject: |
|
|
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 |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Jul 21, 2010 6:24 am Post subject: |
|
|
Try File Tailoring _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Jul 21, 2010 6:25 am Post subject: |
|
|
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 |
|
|
raj24186 Beginner
Joined: 04 May 2010 Posts: 3 Topics: 1
|
Posted: Wed Jul 21, 2010 12:39 pm Post subject: |
|
|
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 |
|
|
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Wed Jul 21, 2010 1:37 pm Post subject: |
|
|
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 |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Jul 21, 2010 2:09 pm Post subject: |
|
|
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 |
|
|
raj24186 Beginner
Joined: 04 May 2010 Posts: 3 Topics: 1
|
Posted: Thu Jul 22, 2010 12:35 am Post subject: |
|
|
I was referring to :
ADDRESS ISREDIT "CHANGE "'date'" &DATE ALL"
Can this command accept dynamic values?? |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Jul 22, 2010 5:14 am Post subject: |
|
|
ADDRESS ISREDIT "CHANGE 'date' " datevar "ALL" _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Thu Jul 22, 2010 5:22 am Post subject: Re: Passing the parameters from REXX panel to jcl |
|
|
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 |
|
|
|
|