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

Using rexx code and can i pass these values to the JCL


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

New User


Joined: 03 Nov 2008
Posts: 42
Location: Pune

PostPosted: Mon Jun 08, 2009 2:08 pm
Reply with quote

Hi,

can i have taken some inputs from the user using rexx code and can i pass these values to the JCL where some of the Symbolic parameters are defined.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jun 08, 2009 2:26 pm
Reply with quote

Yes you can. Could you tell us a little more about the process involved.

REXX displays panel, user enters values, values used as ......
a) JCL parameters
b) Input data
c) something else

We are not always psychic, so need you to give us as much information as possible.
Back to top
View user's profile Send private message
mpawan
Warnings : 2

New User


Joined: 03 Nov 2008
Posts: 42
Location: Pune

PostPosted: Mon Jun 08, 2009 2:38 pm
Reply with quote

I my REXX code i am asking user to input data (Cycle date) after validating the data i want to invoke a PROC and that proc have some symbolic parameters.

//B905000 PROC JOB=B905000,
//* J1=B9050005,
// J2=B9050010,
// J3=B9050030,
//* J4=SASHOST,
// DATE01=YYDDD,
// DATE02=YYDDD,
// DATE03=YYDDD,
// DATE04=YYDDD,


and i want to invoke this PROC by replace that YYDDD parameter with the data which user has given.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jun 08, 2009 3:21 pm
Reply with quote

Look at ISPF file tailoring services.

The manual, ISPF services, can be reached from the sticky in the REXX / TSO forum titled reference materials.
Back to top
View user's profile Send private message
deveshyahoo

New User


Joined: 28 Jan 2008
Posts: 10
Location: noida

PostPosted: Wed Jun 10, 2009 2:04 pm
Reply with quote

when i had a similar requirement i took following approach:
1. take input from user.
2. store the user input into variables.
3. read the job to be submitted into a stack.
4. replce/add the variable value in the specfic lines where the parameter value needs to be added (i knew the line no. in stack).
5. write the stack to a new member.
6. submitt the new member.
7. delete the new member.

i dont know if this is the best way but it works.
try it and if you have something better then do let me know.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 10, 2009 2:33 pm
Reply with quote

Quote:
i dont know if this is the best way but it works.
try it and if you have something better then do let me know.

An ISPF skeleton saves all ov the searching through line after line of JCL, and can substitute values conditionally, and do lots of other nice things too, such as include the contents of ISPF tables into the jobstream it generates.

Take a look through the manuals and find out what you are missing icon_lol.gif
Back to top
View user's profile Send private message
deveshyahoo

New User


Joined: 28 Jan 2008
Posts: 10
Location: noida

PostPosted: Wed Jun 10, 2009 3:24 pm
Reply with quote

Quote:
An ISPF skeleton saves all ov the searching through line after line of JCL, and can substitute values conditionally, and do lots of other nice things too, such as include the contents of ISPF tables into the jobstream it generates.


i think you are taking about ISREDIT stuff. i am a beginner in the technology. i have tried to go through a lot a manuals (ibm website... etc) for the ISREDIT functionality but could not get any stuff that can help me learn it. If you have some kind of ppt or tutorial taking it step by step then plz share. it will be a grt help.

Thanks in advance.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 10, 2009 3:40 pm
Reply with quote

Quote:
i think you are taking about ISREDIT stuff.

NO, ISPF file tailoring, which is a completely different animal.

If you go to the sticky at the top of this forum - the one with the links to the manuals, you can read all about ISPF file tailoring which in a lot of cases is more flexible than ISREDIT functionality.
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top