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

explain the differences between vsam and non-vsam files

0 Answers   IBM,


Explain the process in which flat files are converted into vsam files?

0 Answers  


What is the difference between shroptions(2 3) and shroptions (4 3) in the Def CLUSTER ??

3 Answers  


in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?

0 Answers   IBM,


Differentiate between ci split and ca split?

0 Answers  






what is the concept of AIX in vsam ????

1 Answers   HCL,


Name some common VSAM error conditions and codes. ?

1 Answers   IBM,


The first VSAM file V1 has 2 fields A and B . There is a DB2 file which has fields E and f. We need the fields A, B , E and F to another VSAM file called V2. Kindly mention the logic in procedure division in cobol..

2 Answers   Cap Gemini,


when u r using repro command what happens if both infile and outfile names same

4 Answers  


we can define the ksds cluster by two ways by using the file-aid or by using the idcams utility. Explain them.

0 Answers   IBM,


explain in brief how are different versions of gdg named?

0 Answers   IBM,


What are the different types of VSAM files available?

3 Answers   CSC,


Categories