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

in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?

1196


differentiate between sequential files and esds files in vsam?

1166


what is the meaning of dynamic processing in vsam?

1041


Explain the process in which flat files are converted into vsam files?

1001


what is buffering and how does it apply to vsam files ?

1170


explain in brief how are different versions of gdg named?

996


What are the steps involved in access method services?

953


what do you mean by a upgrade set in vsam?

1061


What are the access method services used in vsam?

1026


what does a file status of 02 on a vsam signifies?

1176


what is a base cluster in vsam?

1131


What does the keyranges parameter in define cluster command do?

1043


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?

1096


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

1286


What is a vsam dataset?

1026