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
in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?
differentiate between sequential files and esds files in vsam?
what is the meaning of dynamic processing in vsam?
Explain the process in which flat files are converted into vsam files?
what is buffering and how does it apply to vsam files ?
explain in brief how are different versions of gdg named?
What are the steps involved in access method services?
what do you mean by a upgrade set in vsam?
What are the access method services used in vsam?
what does a file status of 02 on a vsam signifies?
what is a base cluster in vsam?
What does the keyranges parameter in define cluster command do?
If fspc(100 100) is specified does it mean that both the control interval and control area will be left empty because 100 % of both ci and ca are specified to be empty?
what are the codes returned by the ams (access method services) command during the execution in vsam?
What is a vsam dataset?