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

Loading a file into one or more arrays


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sat Dec 08, 2007 5:37 am
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
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

Moderator Emeritus


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

PostPosted: Sun Dec 09, 2007 2:24 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top