Can we copy a sequential file to a VSAM file ? If yes, What
will happen of the size of the sequential file is bigger
than that of the VSAM file?

Answers were Sorted based on User's Feedback



Can we copy a sequential file to a VSAM file ? If yes, What will happen of the size of the sequent..

Answer / nadeem

u can copy a ps into vsam but the ps file should be sorted
in some order before copying into vsam..if u r using
RECFM=FB then u wont have any prob while copying from ps to
vsam..

Is This Answer Correct ?    23 Yes 1 No

Can we copy a sequential file to a VSAM file ? If yes, What will happen of the size of the sequent..

Answer / guest

ANS 1: if the input file is empty no problem. MAXCC=0.

ANS 2; If the input file contains atleast 1 rec, you will
get the folloing error meg.
============================================================
REPRO -

INFILE(INDD) -

OUTFILE
(OUTDD)
IDC3302I ACTION ERROR ON
T0629VR.VSAM.ESDS
IDC3351I ** VSAM I/O RETURN CODE IS 108 - RPLFDBWD =
X'8408006C'
IDC31467I MAXIMUM ERROR LIMIT REACHED.
IDC0005I NUMBER OF RECORDS PROCESSED WAS 12
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE
WAS 12
RETURN CODE 108 MEANS ==>RECLEN specified was larger than
the maximum allowed

Is This Answer Correct ?    17 Yes 4 No

Can we copy a sequential file to a VSAM file ? If yes, What will happen of the size of the sequent..

Answer / kishore

If you give the RECFM=FB, then you can give the same record
length of that VSAM file.
If it VB, you should give LRECL is 4 + LRECL of VSAM file.

You can use, IDCAMS or IEBGENER for copy

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More VSAM Interview Questions

What are the different commands used in idcams for vsam?

0 Answers  


1. delete is not possible in esds. why? 2. i have 10 records in a esds file and i want to delete only 1st record ..then what i have to do?.. it will not affect any sequence of the RBA. 3. why open extend is not possible in rrds vsam file?

3 Answers  


What do you mean by RDW in VSAM?

2 Answers  


What is the catalog?

1 Answers  


Name some common VSAM error conditions and codes. ?

1 Answers   IBM,






what is the syntax of ams modal commands?

0 Answers   IBM,


How Vsam was evolved? What was the equivalent file for ESDS,KSDS and RRDS prior to evolution? What were their disadvantages of those file which leads to evolution of ESDS,KSDS and RRDS files ?

1 Answers  


can we create PS file using IDCAMS utility?

3 Answers   IBM,


What is IDCAMS ?

2 Answers  


what how do you initialize a vsam file before any operation? A vsam with alternate index?

0 Answers   IBM,


While designing vsam files,what is the best way to choose control interval size for the data and the index?

1 Answers  


what will happen if there is no secondary allocation made for datasets?

0 Answers   IBM,


Categories