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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Using rexx code and can i pass these values to the JCL
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jun 08, 2009 2:26 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jun 08, 2009 3:21 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 10, 2009 2:33 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 10, 2009 3:40 pm    Post subject:
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    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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
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 IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


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