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 data to subroutine w/o linkage section

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
s_m

New User


Joined: 21 Jan 2006
Posts: 2
Location: kolkata

PostPosted: Mon Feb 26, 2007 6:22 pm    Post subject: Passing data to subroutine w/o linkage section
Reply with quote

How can data be passed to a dynamically called module without using Linkage Section?
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 7:15 pm    Post subject:
Reply with quote

Linkage Section in the called module or the calling module? I'm thinking it will have to be in one or the other....
Back to top
View user's profile Send private message
s_m

New User


Joined: 21 Jan 2006
Posts: 2
Location: kolkata

PostPosted: Tue Feb 27, 2007 3:40 pm    Post subject:
Reply with quote

William Thompson wrote:
Linkage Section in the called module or the calling module? I'm thinking it will have to be in one or the other....


linkage section in the calling module... i.e. How can data be passed to a dynamically called module without using linkage section in the calling module?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue Feb 27, 2007 4:01 pm    Post subject:
Reply with quote

s_m wrote:
How can data be passed to a dynamically called module without using linkage section in the calling module?
Forgive me if I'm confused, but isn't that the normal way? CALL sub using WS-item? No linkage required.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Tue Feb 27, 2007 4:38 pm    Post subject:
Reply with quote

Use PL/1, there's no linkage section there. Just passing of addresses via pointers. But that's probably not what is meant.
Back to top
View user's profile Send private message
rama9

New User


Joined: 09 Feb 2007
Posts: 4
Location: India

PostPosted: Thu Mar 01, 2007 3:49 pm    Post subject: Re: Passing data to subroutine w/o linkage section
Reply with quote

You can use CALL using WS-AREA...by using this you can pass the data for your sub program..

Syantax: CALL <Sub-program Name) using WS-AREA
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Mar 02, 2007 1:14 am    Post subject:
Reply with quote

Hello,

When you code "CALL modname USING parmlist", you need no linkage section in the calling module. You will use a linkage section in the called module.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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