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
 

 

To pass a variable from one rexx to another rexx prg tru jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
bala kalluri
Warnings : 1

New User


Joined: 08 Jan 2009
Posts: 21
Location: INDIA

PostPosted: Sat Jul 11, 2009 3:33 pm    Post subject: To pass a variable from one rexx to another rexx prg tru jcl
Reply with quote

Hi all,

I have a panel which takes input a variable BLNUM, It’s a rexx program. When I execute this rexx program, at back end a jcl runs.
This jcl calls another rexx program. My requirement is I want to pass this variable BLNUM from one rexx program to another rexx program through the jcl. Is there any way to do so. Please advise.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Sat Jul 11, 2009 3:53 pm    Post subject: Reply to: To pass a variable from one rexx to another rexx p
Reply with quote

Quote:
I have a panel which takes input a variable BLNUM, It’s a rexx program

You could not have chosen a worst wording icon_eek.gif
You are running a rexx script which displays a panel, retrieving some values

You want to build a jcl stream to be submitted using somewhere the values entered in the panel .....

snippet to show the general flow
Code:
... housekeeping
Address ISPEXEC "DISPLAY PANEL(YourPanel)"
if  RC <> 0 then do
    ... tell the user that some error has occurred
    ... or the user hit PF3
   return 4
end

... use file tailoring services to customize the jcl to be submited
Address ISPEXEC "FTOPEN TEMP"
Address ISPEXEC "FTINCL YourSkel"
Address ISPEXEC "FTCLOSE"
Address ISPEXEC "VGET ZTEMPF"
Address TSO     "SUBMIT ('"ZTEMPF"')"
... housekeeping to tell the user that the job was submitted
return 0


snippet to show how to trap the SUBMIT messages
Code:
call outtrap "out."
Address TSO     "PROFILE MSGID"
Address TSO     "SUBMIT ('"ZTEMPF"')"
Address TSO     "PROFILE NOMSGID"
call outtrap "off"
do i = 1 to out.0
   tmp = strip(out.i)
   msg = strip(word(tmp,1))
   if msg = "IKJ56250I" then do
       parse var tmp . "(" jobid ")" .
       say "==>" jobid
   end
   else do
       say out.i
   end
end
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2051
Location: Silicon Valley

PostPosted: Mon Jul 13, 2009 9:19 pm    Post subject: Reply to: To pass a variable from one rexx to another rexx p
Reply with quote

Quote:
When I execute this rexx program, at back end a jcl runs.

How is your JCL created? Show us your JCL. How is the second rexx program invoked?
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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