IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to pass a table/array to a subprogram using CALL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manjithota

New User


Joined: 09 Jun 2005
Posts: 10

PostPosted: Wed Jun 15, 2005 10:01 am
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
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Wed Jun 15, 2005 9:45 pm
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
Reply with quote

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

New User


Joined: 23 May 2005
Posts: 97
Location: Chennai

PostPosted: Thu Jun 16, 2005 10:57 am
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top