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

Passing variables to subprogram in ASSEMBLER


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nivedita Mukherjee

New User


Joined: 15 Apr 2009
Posts: 1
Location: Hyderabad

PostPosted: Tue Apr 28, 2009 12:39 pm
Reply with quote

HI all,

We got stuck with the problem of passing variable from calling program to sub program.In both calling and called program we fpund some structured like this...

COMAREA DSECT * PROGRAM PASSAREA
++INCLUDE ABC62A
++INCLUDE VC015B1


None of these ABC62A,VC015B1 are declared in both the programs.

So could you please help regarding this
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Apr 28, 2009 12:49 pm
Reply with quote

OK, this looks to be Assembler program using a DSECT called COMAREA. This suggests that this is probably a CICS program.
Quote:
++INCLUDE ABC62A
++INCLUDE VC015B1

are copybooks and the ++ suggests that they might be stored in a CA-Panvalet library. These should be expanded at assembly time.

You haven't said how you are trying to pass this COMAREA from calling program to called program. If using a standard z/OS CALL, you need to set R1 to point to it in the calling program and then resolve the R1 address in the called program.

If using EXEC CICS LINK/XCTL, you need to specify the COMAREA in that command e.g. EXEC CICS LINK PROGRAM(progname) COMMAREA(COMAREA)

Garry.
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Passing SYSPRINT to Invoked Program PL/I & Assembler 9
No new posts Finding Assembler programs PL/I & Assembler 5
Search our Forums:

Back to Top