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

I've one sequential file, That file contains millians of Junk & CHAR recoreds example File 1 ,,,,,...,,,.....,.,.INFOSYS.....,,,,,,,,,,,WIPRO..........., ,...,..,. My questions is : I want omit the 44th posstion to 4 CHAR (WIPRO) remaining things I want output file (including Junk CHAR also)... How can we slove this problem & give me a syntax. Please provide the result as soon as possible.

5 Answers   CTS,


Why 16 is used in calculating the DPRTY ? as, DPRTY = (num1, num2), THEN, DPRTY = 16* num1 + num2

4 Answers   IBM,


When we give TYPERUN = SCAN , what are the syntax errors we get?

5 Answers   Kanbay,


how to resolve the soc4 error?

5 Answers   ITC Infotech,


Can you code instream data in a PROC ?

10 Answers  






can u explain gdg with example wht happens if we give limit,empty,noempty,scartch and no scartch

1 Answers   IBM,


What is the difference between run mode and addressing mode?

0 Answers  


Say I have a file with 12 records. Each record has the name of the month. I have to append data in these 12 records into 1 record. How is it possible?

2 Answers   CTS,


When output dataset space is required, what quantity categories are used?

0 Answers  


what happens in conversion stage in job processing?

0 Answers   IBM,


What is catelog procedure and how many catelog procedure to use in one job?

2 Answers   Infosys,


How I sort the records in a file and copy the first 10 records to another file

5 Answers  


Categories