Can we use empty VSAM as input?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

771


Can we call instream to catalog and catalog to instream?

883


What are the 2 types of parameters in dd statement?

859


What is the format of comment statement?

898


When space is allocated for an output dataset, what units can be used?

978


What are the parameter we cannot use in procedure?

819


what is use of disp parameter in dd statement?

834


I need exexution process for JCL programs

2022


How to pass data to a program that is coded in an exec statement?

1048


Is it possible to left uncode disp?

903


I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

1696


what is “Cond= even” and “Cond=only”?

971


What are the parameters that are used in creating a gdg?

943


which utility is used a dummy utility?

1068


Explain the function of //jcllib statement?

929