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

How can you execute a COBOL program via SYSIN in JCL?

1 Answers  


How can the attributes of one sms dataset be copied to another dataset?

0 Answers  


I have a sequential file in which there are 50 records. Now I want to copy all the 50 records in the reverse order into a new file? The last record in the original file should be the first record in the new file. How can I do it?

4 Answers   IBM, TCS,


Hi, My dataset have multiple records, say 100. I want to start copy records only after a record contain a specific value that may be in a specific position. Secondly I want to stop copying rest records if certain record contains a specific value. Can it be done using SORT/ICETOOL utilities?

5 Answers   Patni,


what happens in execution stage in job processing?

0 Answers   IBM,






How do you override a specific DDNAME/SYSIN in PROC from a JCL?

6 Answers   CTS,


what is the function of iebcompr?....is it compare record length or characteristics of a dataset?...pls explain with examples.......

2 Answers  


is there any utility for restarting a particular step in jcl reply soon ?

5 Answers  


How to alter the parameters for the existing gdg?

0 Answers  


wt will happen to the step of a job if u code COND=ONLY

5 Answers   ADP,


describe the exec statement,its meaning ,syntax and keywords?

3 Answers  


What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?

2 Answers   Patni,


Categories