Can we use empty VSAM as input?

Answer Posted / anantha dhanush kodi

Sorry, We can't use Empty VSAM as input. . .

As it contains no records, open will fail with some
filestatus code.

But We can use Empty vsam as output.

During first run open the file in output mode.

In consecutive runs change the mode to extend.

Sample :


open output esdsfilename.

If (filestatus = 35 or filestatus = 37 ) then
open extend esdsfilename
end-if.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the motivation behind coding class parameter in job statement?

689


Differentiate between addressing mode and run mode.

615


How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

605


State the uses of syspring, sysin, sort fields, sum fields and dummy.

654


What are steplib and joblib?

725






What does a disposition of (MOD,DELETE,DELETE) mean ?

668


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2063


what is the use of JCL?

666


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

787


what are JCLLIB and STEPLIB in JCL?

675


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

831


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1931


Can I share my data with other jobs? How?

670


how to do automated restart when a job abends?

854


Explain how can a stopped job be started again?

636