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 |
There are two input sorting files and there is a need to create one sort out file which contains data of both input files. What is the sort card for this. Write a sample JCL for this using a control card?
As PARM can supply information to a program ? Can PARM be used to supply information to a cataloged or Inline Procedure also ?
how to create a member or sequential dataset through tso command??
How can you execute a COBOL program via SYSIN in JCL?
Hi, Say I have 10 flat files and I want to copy all these 10 flat files to a GDG versions flat files (I have GDG base: FDWS01.TEST.RESTORE) in one shot. Can we do that in one shot using a JCL. May be by using IEBGENER. It's a bit urgent. So anyone's fast rely would be appreciated.. Thanks in advance.. 10 flat files ----------------------------------- FDWS01.SUB.RESTORE1 FDWS01.SUB.RESTORE2 FDWS01.SUB.RESTORE3 ; ; FDWS01.SUB.RESTORE10 TO GDG versions ----------------------- FDWS01.TEST.RESTORE.G0001V00 FDWS01.TEST.RESTORE.G0002V00 FDWS01.TEST.RESTORE.G0003V00 ; ; FDWS01.TEST.RESTORE.G0010V00
Suppose there are 10 steps in a PROC, I want to execute only step5. How do you give the condition in the JCL that calls this PROC?
Can we give two user name in NOTIFY parameter in JOBCARD
I had 100 steps in jcl i want to execute first 10 steps only?
i have step1,step2,step3 from where can i start coding cond parameter ?
how to see the latest generation in gdg?
A PROC has five steps. Step 3 has a condition code. How can you override/nullify this condition code?
What are the kinds of job control statements?