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

Can we change a FB file to VB file in JCL? Please help

1 Answers  


I have a File that has duplicate records. I need only those records that occur more than thrice.

3 Answers  


What are the 4 fields in dd statement?

0 Answers  


Explain about LMCLOSE�close a data set

1 Answers  


how are instream data terminated?

3 Answers   Tech Mahindra,






What is one line to pass PARM from JCL to COBOL?

0 Answers  


can we write a proc with in a proc

4 Answers   IBM,


What does the TIME parameter signify ? What does TIME=1440 mean ?

6 Answers   Accenture, TCS,


If the COND parameter is specified in both the JOB and EXEC statements, which one will take precedence? If JOB takes priority and if all the conditions evaluate to false, then will the conditions on the EXEC step be evaluated next?

4 Answers   Wipro,


Is acct parameter mandatory?

0 Answers  


In a JCL if previous steps return code is greater than 0 or 4 then the next step will not execute. But the job will be successfull with the maximum return code. How can we reset this maximum return code to '0' regardless of return codes of any steps?

4 Answers  


wht r different types of sort fields in jcl ?

1 Answers   IBM,


Categories