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
 

 

Loading a file into one or more arrays

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
smitha_bdr

New User


Joined: 07 Dec 2007
Posts: 2
Location: Chennai

PostPosted: Sat Dec 08, 2007 12:09 am    Post subject: Loading a file into one or more arrays
Reply with quote

If iam trying to populate an Array with some data, it is giving ABENDU4038.

The Array - element (record) size is 70 and the Array Size is 99,999. It is Abending after populating some 10,074 elements (records).

So to resolve this problem, how can i populate the same data into more than one Array. Even if i populate how can i retrieve data from Multiple Arrays inorder to perform some matching (comparision).
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: Sat Dec 08, 2007 5:37 am    Post subject:
Reply with quote

Hello,

First, make sure the input is in sequence by whatever you are going to later search by.

In addition to the multiple arrays, create one "master" array where you store the lowest and highest value of each of the other arrays.

When you need to search, first determine which of the multiple arrays contains the value you are working with and then search that array.
Back to top
View user's profile Send private message
smitha_bdr

New User


Joined: 07 Dec 2007
Posts: 2
Location: Chennai

PostPosted: Sat Dec 08, 2007 11:52 am    Post subject: How to populate one file into multipleArrays Dynamically
Reply with quote

I don't know the procdure for loading a single file into multiple arrays dynamically..
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: Sun Dec 09, 2007 2:24 am    Post subject:
Reply with quote

Hello,

You have to write code to read the external file and move the value read into a place in the "current" array. You'll read records up to the "limit" for the current array and then continue with the "next" array.

Quote:
I don't know the procdure for loading a single file into multiple arrays dynamically


It will basically be the same code you already have with the exception that it does not work within the single array. It is a little more work than the corrent code, but nothing major. I'd suggest you lay it out with pseudo-code before actually trying to key in and compile the new code.

If you have questions while you are creating your pseudo-code, reply here and someone will have suggestions.
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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm


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