Can we use empty VSAM as input?

Answers were Sorted based on User's Feedback



Can we use empty VSAM as input?..

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

Can we use empty VSAM as input?..

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

Can we use empty VSAM as input?..

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

Can we use empty VSAM as input?..

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

Can we use empty VSAM as input?..

Answer / sadaf

It can be read....file status can be handled in the
program...

Is This Answer Correct ?    5 Yes 2 No

Can we use empty VSAM as input?..

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

Can we use empty VSAM as input?..

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

Can we use empty VSAM as input?..

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

Can we use empty VSAM as input?..

Answer / kavitha

YES

Is This Answer Correct ?    3 Yes 12 No

Post New Answer

More JCL Interview Questions

Explain about LMMFIND - find a library member

1 Answers  


hi friends........if u know syntax of IEBEDIT IN JCL

2 Answers  


What is the DD statement for a output file?

3 Answers  


I have Job A and Job B. I want to trigger Job B from Job A. Please advise.

2 Answers   Wipro,


I have a job (4 steps) with time parameter coded in job & exec, say time=10 in job & time =3,2,2,4 in each steps. Will the job executes successfully?

4 Answers   Cognizant,


How is a GDG base created?

5 Answers  


what sort card you will use to copy the data from one dataset to another dataset?

0 Answers   IBM,


wht do u mean by notify parameter, how can u give acess to multiple users ?

4 Answers   L&T,


What are the kinds of job control statements?

3 Answers  


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

0 Answers   IBM,


. What is the difference between the following statements : I) step#1 exec PGM=accpay ii) step#1 exec tbalance

1 Answers  


In jcl i have 255 steps. In 255 step i declared proc. In proc i have 20 steps this job is executable or not? why?

4 Answers  


Categories