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.....

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

What is the main function of key sequenced data set in vsam?

1025


what parameter in the define aix option is used to determine the maximum number of duplicate keys allowable ?

1058


Define gdg?

1032


What makes vrrds different from vsam?

1301


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.

2492


What is the purpose of idcams?

1094


What is the purpose of control intervals in vsam?

1050


Differentiate between ci split and ca split?

1056


what are the codes returned by the ams (access method services) command during the execution in vsam?

1349


Would you specify freespace ce for an esds?

1137


what do you mean by define model parameter?

1224


what are the idcams commands that can be used for vsam and explain each of them.

1054


why ci and ca splits are not possible in esds and rrds?

1212


what is the meaning of each of the values in shareopts(2 3)?

1070


Tell me how many alternate indexes you can have on a dataset?

1151