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

Senior Member


Joined: 08 May 2006
Posts: 1005
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 Advanced Assembler Language and MVS I... Paul Voyner All Other Mainframe Topics 0 Wed Apr 18, 2018 3:49 pm
No new posts java.io.FileNotFoundException - passi... Virendra Shambharkar Java & MQSeries 5 Mon Feb 26, 2018 11:41 am
No new posts Using indexed variables in EZPLUS SRIDEVI TANTRY CA Products 1 Thu Feb 01, 2018 12:15 pm
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am

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