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


Please Help Members By Posting Answers For Below Questions

Explain the function of entry-sequenced data set?

532


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.

1878


what do you mean by idcams? Explain its purpose?

539


What are the distinctive features of a ksda, key sequenced dataset?

525


explain in brief how you can create a vsam file?

656






How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?

583


What makes vrrds different from vsam?

701


Explain the difference between lds and esds?

575


Explain the function of the relative record data set?

541


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?

587


How to get the last record in vsam file in cluster?

572


Explain the catalog?

564


What is control interval?

610


What is the biggest disadvantage of using a vsam dataset?

603


what are s0c1, s0c4, s0c5, s0c7 abends?

791