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
Explain the function of entry-sequenced data set?
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.
what do you mean by idcams? Explain its purpose?
What are the distinctive features of a ksda, key sequenced dataset?
explain in brief how you can create a vsam file?
How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?
What makes vrrds different from vsam?
Explain the difference between lds and esds?
Explain the function of the relative record data set?
Under idcams, multiple functions can be executed, each of which returns a condition code. What will be the condition code returned to the operating system?
How to get the last record in vsam file in cluster?
Explain the catalog?
What is control interval?
What is the biggest disadvantage of using a vsam dataset?
what are s0c1, s0c4, s0c5, s0c7 abends?