Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 991
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 A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us