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
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 |
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 |
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 |
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.
Why 16 is used in calculating the DPRTY ? as, DPRTY = (num1, num2), THEN, DPRTY = 16* num1 + num2
When we give TYPERUN = SCAN , what are the syntax errors we get?
how to resolve the soc4 error?
Can you code instream data in a PROC ?
can u explain gdg with example wht happens if we give limit,empty,noempty,scartch and no scartch
What is the difference between run mode and addressing mode?
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?
When output dataset space is required, what quantity categories are used?
what happens in conversion stage in job processing?
What is catelog procedure and how many catelog procedure to use in one job?
How I sort the records in a file and copy the first 10 records to another file