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

How to call a subroutine from a subroutine?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pragati Soni

New User


Joined: 18 Jan 2008
Posts: 47
Location: India

PostPosted: Fri Jan 18, 2008 3:48 pm
Reply with quote

I need to call the subroutines from a main subruotine.

Its like

Route:
call Showpanl
call validval
exit

Showpanl:
--
--
return

validval:
if xyz then
nop
else
signal route
return
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Jan 18, 2008 4:12 pm
Reply with quote

And the question is...?

O.
Back to top
View user's profile Send private message
Pragati Soni

New User


Joined: 18 Jan 2008
Posts: 47
Location: India

PostPosted: Fri Jan 18, 2008 4:13 pm
Reply with quote

ofer71 wrote:
And the question is...?

O.


Qusetion is : how to call a subroutine from a subroutine?
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Fri Jan 18, 2008 4:25 pm
Reply with quote

returnvaluehere = yoursubroutinehere('yourparmshere')

address tso "yoursubroutinehere" 'yourparmshere'
if rc=0 then..

parse value yoursubroutinehere(yourparmshere) with returnvaluehere
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 Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
No new posts CICS DPL call CICS 6
Search our Forums:

Back to Top