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
What is the motivation behind coding class parameter in job statement?
Differentiate between addressing mode and run mode.
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
State the uses of syspring, sysin, sort fields, sum fields and dummy.
What are steplib and joblib?
What does a disposition of (MOD,DELETE,DELETE) mean ?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
what is the use of JCL?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
what are JCLLIB and STEPLIB in JCL?
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?
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
Can I share my data with other jobs? How?
how to do automated restart when a job abends?
Explain how can a stopped job be started again?