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: 10256
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: 2038
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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