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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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