how to access vsam files in cobol and how to differentiate
that this is ESDS file



how to access vsam files in cobol and how to differentiate that this is ESDS file..

Answer / javiad

In order to access VSAM file in a cobol program, we need to
code oransiation, access and rec key in the file descrption.

For ESDS add prefix AS- to the DD Name.

Is This Answer Correct ?    20 Yes 0 No

Post New Answer

More COBOL Interview Questions

Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible

7 Answers   TCS,


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

0 Answers  


I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..

3 Answers   iGate,


How many variables can be declared in w-s section.?

2 Answers  


We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)

1 Answers   Cap Gemini,






what are the diferences b/w sub-script and index?

4 Answers  


how would find total records in files using seqientional

1 Answers   HSBC,


What is 88 level used for ?

2 Answers  


what is the difference between COBOL2 AND COBOL390?

0 Answers   L&T,


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

0 Answers   HSBC, Quest,


what is subscript in cobol?give realtime example?

2 Answers   Wipro,


How include time & date in the report generation in cobol programing?

2 Answers  


Categories