MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Passing arrays thru Linkage

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
coolguy
Beginner


Joined: 01 Dec 2004
Posts: 82
Topics: 28

PostPosted: Mon Apr 09, 2007 6:13 am    Post subject: Passing arrays thru Linkage Reply with quote

Hi All

I have doubt in Arrays

In my program I have 2 arrays (2 dimensional)

Array Info (4, 49)
Array Amts (51, 49)
Both are different attributes
Can I pass this array value to my sub program? Is their any Limitations are there to pass 2 arrays? pls help in that

Cool
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Apr 09, 2007 7:40 am    Post subject: Reply with quote

Yes you can pass the array value to the sub program but I think the max size is 32k.

05 A pic x(100).
05 array redefines A.
10 array-entry occurs 50 times pic x(002).

call 'subpgm' using A
or
call 'subpgm' using array
Back to top
View user's profile Send private message Send e-mail
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Apr 09, 2007 9:21 am    Post subject: Reply with quote

what programming language? though it does not matter, you can CALL with arrays (tables) in any language. I assume you are not talking COBOL since your are talking arrays.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group