Can we use empty VSAM as input?
Answers were Sorted based on User's Feedback
Answer / biswaranjan
No its not possible at all.
If u are using a empty VSAM file it ll show:
FILE STATUS : 35
If you want to read it you have to get inside the file and
incert a dummy record there.
| Is This Answer Correct ? | 19 Yes | 2 No |
Answer / sadaf rehan
empty VSAM can not be readed becouse key is needed and when
nothing is there what will be the key..
if you tried to read u'll get file status 35
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / 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 |
Answer / munish
No, we can not creat empty VSAM as input. I think , when
we have to put null record it the VSAM file for empty VSAM
as input. Otherwise it will give us file status as 35.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sadaf
It can be read....file status can be handled in the
program...
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / aditya
no u can't use empty VSAM as i/p ...place some data using
REPRO then u can use it...
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / dev
If VSAM file is not present physically thn only we get file
status as 35.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / anantha dhanush kodi
Change the mode file open mode from Extend to Output. . .
Hope it will help u. . .
| Is This Answer Correct ? | 3 Yes | 2 No |
what is the restart?hopw it is invoked?
What are the parameter we cannot use in procedure?
How can an in-stream dataset be terminated?
how you will define a temporary dataset in jcl?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
What are the keywords associated with DCB? How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
What are isolation levels? Where do we need to specify them in compiling JCL?
Explain the jcl exec statement?
Explain the job statement in jcl?
How can values be passed from the job stream to an executable program?
How does -818 sql error occur? Why does it happen and what can be done to overcome this error code?