Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to declare the EMP Name, EMP No., DOB in VSAM KSDS
file? Please explain.....

Answers were Sorted based on User's Feedback



How to declare the EMP Name, EMP No., DOB in VSAM KSDS file? Please explain.......

Answer / gomathi

//PSTY0010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE CLUSTER (NAME (SAMPLE.DATA) -
TRACKS(45 15) -
RECORDSIZE(80 80) -
FREESPACE(10 15) -
KEYS(6 0) -
INDEXED) -
DATA (NAME(SAMPLE.DATA.DAT) -
CISZ(8192)) -
INDEX (NAME(SAMPLE.DATA.IDX))
/*
//*

In Key (6,0) mention the start position and length of the
key

Is This Answer Correct ?    11 Yes 5 No

How to declare the EMP Name, EMP No., DOB in VSAM KSDS file? Please explain.......

Answer / prachi

//STEP010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE CLUSTER (NAME (EMPLOYEE.INFO.FILE) -
VLOUMES(TSOP01) -
CYLINDERS(10,2) -
CONTROLINTERVALSIZE(4096) -
FREESPACE(10,20) -
KEYS(5,21) -
RECORDLENGHT(31,31) -
DATA -
(NAME(EMPLOYEE.INFO.FILE.DATA)) -
INDEX -
(NAME(EMPLOYEE.INFO.FILE.INDEX) -
CONTROLINTERVALSIZE(1024))
/*
//

ASSUMING FOLLOWING THINGS

EMP-NO AS KEY

EMP-NO PIC 9(5)
EMP-NAME PIC X(20)
DOB PIC X(6)

RECORD IS FIXED LENGHT

Is This Answer Correct ?    0 Yes 3 No

How to declare the EMP Name, EMP No., DOB in VSAM KSDS file? Please explain.......

Answer / shiva

Gomathi you are 100% correct..

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More VSAM Interview Questions

What is a CI, control interval?

3 Answers  


What is the difference between lds and esds?

0 Answers  


What is the upgrade set?

1 Answers  


Suppose 3 generations of a GDG exist. How would you reference the 1st generation in the JCL?

2 Answers   IBM,


How are records stored in an ESDS, entry sequenced dataset?

1 Answers   IBM,


Yes. Because the alternate key would first locate the primary key, which in turn locates the actual record. Needs twice the number of I/Os.

0 Answers  


What are the building blocks used in vsam datasets?

0 Answers  


what do you mean by a shareoptions parameter (shr) in define cluster command?

0 Answers   IBM,


What does the keyranges parameter in define cluster commends do?

0 Answers  


In vsam why we use export-import utility?

3 Answers  


Explain the device independent method to indicate where a record is stored?

0 Answers  


looking at the basic definition of VSAM file how to recognize whether it is a KSDS OR RRDS OR ESDS ?

2 Answers   IBM, Infosys,


Categories