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
 
How to open the vsam data set

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to open the vsam data set
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    Post subject: Re: vsam
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    Post subject: Re: How to open the vsam data set
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    Post subject:
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    Post subject: vsam
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
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 VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
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