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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2313


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1876


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2002


Give some examples of command terminators?

934


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2170


What is the difference between comp and comp-3 usage?

858


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2223


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

859


What is the default value(s) for an initialize and what keyword allows for an override of the default?

948


Mention the guidelines to write a structured cobol program?

814


How to remove 2 duplicate records and copy only one using job control language?

966


Discuss about changing dataset name in proc.

953


What is the difference between comp and comp-3?

886


What is the difference between goback, stop run and exit program in cobol?

1218


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2116