Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Loading file into memory

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
vivekss97

New User


Joined: 15 Feb 2009
Posts: 3
Location: Chennai, India

PostPosted: Fri Aug 28, 2009 12:10 pm    Post subject: Loading file into memory
Reply with quote

I want to load a file into memory. I am acquiring required amount of memory using getmain. But I don't have any idea of how to load data from file to this acquired memory. icon_question.gif
Back to top
View user's profile Send private message

Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 998
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Aug 28, 2009 3:13 pm    Post subject:
Reply with quote

Why do it this way? Why not use CICS Datatables?

If you really want to do it manually, just read the records and assign each into the next available area in the memory you have acquired, incrementing through the memory as you go.

Garry.
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: Fri Aug 28, 2009 8:29 pm    Post subject:
Reply with quote

Hello,

Quote:
I want to load a file into memory.
It might be easier to code, but is not a good approach. . .

Suggest you consider a different approach (unless the file only contains 10 records or so).
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Fri Aug 28, 2009 10:15 pm    Post subject: Reply to: Loading file into memory
Reply with quote

If this is a read-only file (which is what is being assumed), get together with your Systems folks and ensure that they place this file into an LSR pool, especially if it's high-use.

Other than what Garry had spoken of, regarding data-tables (best choice for read-only), LSR is the second best (read-only or not).

CISZ modification might be in order as well.

Bill
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us