How to declare the EMP Name, EMP No., DOB in VSAM KSDS
file? Please explain.....
Answer Posted / 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 |
Post New Answer View All Answers
What are the steps involved in access method services?
Using alternate indexes in cics program?
in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?
what do you mean by a vsam slot?
what is meant by s0c-07 system abend codes?
Would you specify freespace ce for an esds?
what do you mean by recovery and speed parameters in define cluster command?
What are the different dataset organizations used in vsam?
explain how can you initialize a vsam file before any operation?
what parameter in the define aix option is used to determine the maximum number of duplicate keys allowable ?
Why is master catalog used in vsam?
what do you mean by idcams? Explain its purpose?
What is the place for VSAM KSDS?
how do you define an altindx ? How do you use altindxs in batch, cics programs?
Explain the device independent method to indicate where a record is stored?