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
 
Passing variables to subprogram in ASSEMBLER

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Passing variables to subprogram in ASSEMBLER
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

Active Member


Joined: 08 May 2006
Posts: 998
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Apr 28, 2009 12:49 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Sr SW Eng-Rocket Software (Assembler,... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:29 am
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm

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