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 |
Suppose I have Five Steps in PROC In this Case I want to Execute third Step in PROC using Main JCL don't use any COND Explain with Coding Thanks & Regards SHREE
Describe the DD statement, its meaning, syntax and keywords?
what are the symbolic parameters? why do we use symbolic parameters ?
2 Answers IBM, TCS, UST, Xansa,
I have a Symbolic Parameter which can have a value say 01 or 02 etc. Now consider i have another Symbolic parameters which is used to get 3 digit code of months (JAN, FEB, etc) but for that i need to check the first symbolic parameter's value and provide its corresponding month's name in the second symbolic parameter. Say IF sym1 = 01 then sym2='Jan' ENDIF etc... In JCL, IF condition is used for RC, ABEND purposes of a step etc. When i use Symbolic parameter in IF clause it is showing Error message. Is there a way to get the above result possible in JCL. If you could provide me with an example, i would understand it better.
What is the maximum length of a single line of jcl?
i have a ps with two columns eno and ename , i need to copy eno column values in one ps and ename column values in one Ps ? is it possible through iebgener . how ? thx in advance
Write a jcl to execute a job by 7 a.m on Jan 20,1986 ?
File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
what if any ,is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.
what is inrec fields and outrec fields in sorting
what is JCL?