Can I copy the FB (fixed Block) record length file to a VB
(variable Block)record length file and Vise Versa? If Yes
then how ? is that thru one of the JCL utility ?

Answers were Sorted based on User's Feedback



Can I copy the FB (fixed Block) record length file to a VB (variable Block)record length file and ..

Answer / sathya

yes we can do using sort utility,
//SORTTA EXEC
PGM=SORT
//SYSIN DD *
SORT
FIELDS=COPY
OUTREC FIELDS=(1:5,4096),CONVERT
/*

//SORTIN DD DSN=…,DISP=SHR
//SORTOUT DD DSN=…
//SYSOUT DD
SYSOUT=*
//
The CONVERT control statement is used to convert the
File format from VB to FB.

Is This Answer Correct ?    16 Yes 2 No

Can I copy the FB (fixed Block) record length file to a VB (variable Block)record length file and ..

Answer / ds

Yes. using IEBGENER utility we can copy this. But this is
not advisable until there's a specific requirement.

FB to VB
--------
FB rec length is X
VB rec length should be X+4

VB to FB
--------
VB rec length is X (Length indicated in JCL)
FB rec length is X-4
Note: But here in second case lot disk space will be wasted.

Without the idea of requirement and system design, one
can't say anything.

Thanks, DS.

Is This Answer Correct ?    14 Yes 3 No

Can I copy the FB (fixed Block) record length file to a VB (variable Block)record length file and ..

Answer / atif

Use syncsort utility.
for FB to VB
OPTION COPY
OUTFIL BUILD=(5,1000),FTOV,VLTRIM=X'40'
simililarly for Vb to FB
OPTION COPY
OUTREC FIELDS=(1:5,4034),CONVERT

Is This Answer Correct ?    16 Yes 5 No

Post New Answer

More JCL Interview Questions

Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?

8 Answers  


What is QSAM error usually when it is occurs?

1 Answers  


Max. No of DD statements in a job ?

4 Answers   CSI,


Which dd parameters are required?

0 Answers  


How to search strings in multiple dataset with conditions 'string1 & string2'?

1 Answers   IBM,


Can a temporary dataset be converted to permanent dataset and vice-versa in the middle of a job ?

4 Answers   IBM,


How to exclude the duplicate records from two concateded flat files (records from both files must be removed)?

1 Answers  


define cond parameter in jcl?

0 Answers   IBM,


in step1 of a jcl,disp=(mod,delete,delete) step02 exec pgm=ccc,cond=(0,le) will step02 be executed? i)never ii)always iii) iv)... i dont remember options

4 Answers   HSBC,


How to Enter The Spool Area In Real Time?

7 Answers   IBM,


in jcl you are having JCLLIB and STEPLIB what happens

10 Answers   EDS, Wipro,


What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?

12 Answers   Convergys,


Categories