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

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


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Jul 11, 2009 3:53 pm
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

Global Moderator


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

PostPosted: Mon Jul 13, 2009 9:19 pm
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 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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top