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

A PROC has five steps. Step 3 has a condition code. How can you override/nullify this condition code?

5 Answers   IBM, Wipro,


What is primary allocation for a dataset?

4 Answers  


Is automatic restart possible in jcl?

0 Answers  


what do you mean by include statement in jcl?

1 Answers   IBM,


In how ways you can pass the data from Jcl to cobol ?

3 Answers   Cap Gemini, IBM,






I have a input file. Data like: ABCDEFGH.... i want out put file like AB BC CD DE....How can do this??

7 Answers   UST,


Explain dfsort utility?

0 Answers  


how many max steps can we use in a job? pls answer to my question

9 Answers   TCS,


AM HAVING A FILE WHICH CONTAIN 12 DATS OUT OF WHICH 4 ARE DUPLICATES HOW TO REMOVE THE DUPLICATE FILES IN JCL? CAN I GET THE PROGRAM FOR THIS

3 Answers  


What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring the length field in Linkage Section?

2 Answers   IBM,


how to split a file

4 Answers   IBM,


diff bw vsam and normal flat file?

2 Answers   CGI,


Categories