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

How to open the vsam data set


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthikuma

New User


Joined: 29 Mar 2005
Posts: 62

PostPosted: Mon Jun 06, 2005 9:35 am
Reply with quote

hi,

this questions faced on one interview.simply they asked how to open the vsam data set?i said in output mode.any one plz give me an sugestion.


regards,
kumar
Back to top
View user's profile Send private message
kkumarv

New User


Joined: 13 May 2005
Posts: 20
Location: Bangalore/India

PostPosted: Mon Jun 06, 2005 10:29 am
Reply with quote

VSAM are of four types: KSDS,RRDS,ESDS,LDS:Entry sequenced datasets (ESDS), key sequenced datasets (KSDS) and relative record dataset (RRDS).

All can be opened in input/output or I/O mode in Cobol by declaring the file in file control. read is possible only in input mode, write in output mode whereas rewrite in I/O.

only difference KSDS read by Key or by Start command to key whereas rest can be sequentially or in block( for RRDS). Incase of ESD rewrite is only possible, no delete is possible due to entry sequence format of ( such as record like writing on a queue). RRDS read by RBA,relative byte address,preformatted fixed-length slots.

Whereas CICS command would you use to read a VSAM KSDS sequentially in First issue a STARTBR(start browse), which will position the browse at the desired record. Retrieve records by
using subsequent READNEXT commands. Indicate the end of sequential processing with the ENDBR command. If
the generic key is specified in the STARTBR command positioning in the file will be before the first record
satisfying the generic key.For reading in descending order use the READPREV instead of READNEXT.
Back to top
View user's profile Send private message
vishal_a

New User


Joined: 24 May 2005
Posts: 45
Location: Noida

PostPosted: Fri Jun 10, 2005 11:58 pm
Reply with quote

Hi
Well according to me Ditto from ISPF menu can also work for u to open the VSAM dataset.
or the IDCAMS utility print option also works
use print ids(/) ch in front of a VSAM KSDS , ESDS ,RRDS dataset

regards
Vishal
Back to top
View user's profile Send private message
sasi.palani

New User


Joined: 01 Jun 2005
Posts: 14

PostPosted: Sat Jun 11, 2005 10:48 am
Reply with quote

yaa , i agree all r right , but an empty vsam dataset is condidered to be non existing dataset . if u want to open that vsam dataset , open first in output mode and the in input mode . hope it is clear.
Back to top
View user's profile Send private message
karthik1680
Warnings : 2

New User


Joined: 14 May 2005
Posts: 64
Location: chennai

PostPosted: Wed Jul 13, 2005 8:01 am
Reply with quote

hi thanks for your answer
can u explain it clearly.
Well according to me Ditto from ISPF menu can also work for u to open the VSAM dataset.
or the IDCAMS utility print option also works
use print ids(/) ch in front of a VSAM KSDS , ESDS ,RRDS dataset


use print ids(/) -what does it mean
reply immedeately
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top