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
 

 

How VSAM files are read in CICS

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

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Wed Nov 16, 2005 8:53 am    Post subject: How VSAM files are read in CICS
Reply with quote

hi folks

Can anyone tell me like how VSAM files are read in CICS programs. Please give me a detailed explanation.
Back to top
View user's profile Send private message

batu544

New User


Joined: 21 Jul 2005
Posts: 16
Location: bangalore

PostPosted: Wed Nov 16, 2005 3:52 pm    Post subject:
Reply with quote

there are three types of file in VSAM .. which type of file you want to read ??
Back to top
View user's profile Send private message
dgrinch

New User


Joined: 16 Nov 2005
Posts: 4

PostPosted: Thu Nov 17, 2005 12:06 am    Post subject:
Reply with quote

Say it's KSDS you're referring to, then include your FD stament in file-section, may be create working storage layout as file data buffer. If you use partial ket then, fill in key values and use STARTBR command which will bring you to a relatively closer to your record, then do successive READNEXTs to get to your record. If a full VSAM key is used, then directly issue a READ statement. Don't forget to handle return codes from STARTBR, READNEXT & READ (use EVALUATE stmt) use the DFH???? variables to look for non-zero return codes. Hopes this helps.
Back to top
View user's profile Send private message
saran

New User


Joined: 21 Nov 2005
Posts: 2
Location: Chennai

PostPosted: Mon Nov 21, 2005 4:57 pm    Post subject: Re: How VSAM files are read in CICS
Reply with quote

Hi dgrinch,
But in CICS there is no FD section correct...?

If u want to read a file with direct access then u can use READ with record key in RIDFLD, if u want to read the file sequentially then use STARTBR, READ NEXT, ENDBR options.
Back to top
View user's profile Send private message
Nithya

New User


Joined: 09 Sep 2005
Posts: 2
Location: b'lore

PostPosted: Mon Nov 28, 2005 3:34 pm    Post subject: Re: How VSAM files are read in CICS
Reply with quote

Hi,

For Reading VSAM files, the logical file name should be given in the CICS command.
For Eg.,
EXEC CICS READ FILENAME(logical file name)
RIDFLD(key field)
UPDATE

For Updating the file...we read it with Update option..
For a seq read...START BROWSE With READNEXT...


This Logical file name will be related to the physical file name in the FCT..
this is done by Mainframe Admins...
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 How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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