Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to pass a table/array to a subprogram using CALL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
manjithota

New User


Joined: 09 Jun 2005
Posts: 10

PostPosted: Wed Jun 15, 2005 10:01 am    Post subject: How to pass a table/array to a subprogram using CALL
Reply with quote

could somebody tell me how to pass a big table/array to a subprogram using
cobol calls or any other method also will do.
Back to top
View user's profile Send private message
References
priya

Moderator


Joined: 24 Jul 2003
Posts: 624
Location: Bangalore

PostPosted: Wed Jun 15, 2005 9:45 pm    Post subject:
Reply with quote

Make your array/table as a Group variable and now you can pass the group item.

Code:
01 A.
02 A1 OCCURS....

CALL X USING A.
Back to top
View user's profile Send private message
manjithota

New User


Joined: 09 Jun 2005
Posts: 10

PostPosted: Thu Jun 16, 2005 10:21 am    Post subject: Re: How to pass a table/array to a subprogram using CALL
Reply with quote

but then priya, r u quite sure about it.
Back to top
View user's profile Send private message
sudheer648

Active User


Joined: 23 May 2005
Posts: 97
Location: Chennai

PostPosted: Thu Jun 16, 2005 10:57 am    Post subject: Re: How to pass a table/array to a subprogram using CALL
Reply with quote

Hi manjithota,

priya is right.That is way how you pass the array to a sub-program by call statement.

Comments are welcome
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1