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

Cant access the element of a compound variable to main prog.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Khwairakpam Raju Singh

New User


Joined: 05 Dec 2007
Posts: 29
Location: Bangalore

PostPosted: Mon Dec 17, 2007 5:52 pm
Reply with quote

anybody tell me what's wrong with the following code:

Code:

externan subroutine:
...

X = OUTTRAP('DUMP.')                           
"REPRO IFILE(BCAS) OFILE(TSPS) COUNT("N"),     
 FROMKEY("KEY                                 
 X = OUTTRAP('OFF')                           
"EXECIO * DISKW TSPS(FINIS"                   
"EXECIO * DISKR TSPS(STEM BCASE. FINIS"       
"FREE FI(TSPS)"                               
"FREE FI(BCAS)"                               
RETURN   
                                     



here all the records are stored in the coumpound variable 'BCASE.' . But after returning the control to main program the records(element) present in this coumpound variavle 'BCASE' are not accessible. Please suggest me how to solve this problem. Is there any concept of gloval variable....I want to be able to access all the element present in this compound variable...In main program.
Back to top
View user's profile Send private message
Deru Sudibyo
Currently Banned

New User


Joined: 30 Nov 2007
Posts: 6
Location: Indonesia

PostPosted: Mon Dec 17, 2007 9:17 pm
Reply with quote

Nothing wrong. As what u r thinking, i am planning to add such facility to my freeware (zCBT). At the moment i recommend to use stack instead.
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts access the last host command CLIST & REXX 2
Search our Forums:

Back to Top