Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10327
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: 2086
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us