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

What are some jcl statements that are not allowed in procedures?

0 Answers  


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

0 Answers  


Can we change the LIMIT of GDG?

6 Answers   HCL,


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

0 Answers  


How can return codes be tested before execution of a job step?

0 Answers  






What is a Generation Data Group (GDG)?

2 Answers  


What parameter of the job statement is used to limit the cpu time consumed by the job?

0 Answers  


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

0 Answers  


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

0 Answers  


Hi Please try to be to-the-point. 1) How to INCLUDE a JCL segment in a JOB ? (A Small example) 2) What is SPOOL and what is SPOOL FULL ? and how to direct the output of a Jobstep to SPOOL ?

3 Answers   IBM,


whats SOC7?

1 Answers   Patni,


What is the use of symbol // in jcl?

0 Answers  


Categories