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
Explain the function of a dd statement?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
what is the purpose of coding notify parameter in job statement?
What is the function of the steplib dd statement?
How does jcl act on code(if you take a cobol program)?
What are the rules employed while naming the steps in a job?
Where & How Do You Code Identifier In Jcl?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
Explain the purpose of the dd keylen parameter?
What parameter directs the output of the job log dataset?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
Which dd parameters are required?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
How to submit a jcl from cics?