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 |
How can we execute only one step in a job
22 Answers MAHINDRA, Mind Tree, Tech Mahindra,
what is use of space parameter in dd statement?
how you will define a temporary dataset in jcl?
Is there any command to check wether the ps file is in sorted order?
if my GDG limit has been kept as 50 and if am trying to put 60 records.what would happen. will there be any abend for this scenario
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
Can I concatenate various datasets whose organization are different from each other. Lets say I want to cancatenate a PDS file, a PS file, a GDG file etc. Can You do that ?? If yes, how ? is there any separate Utility to do so ???
What does a disposition of (NEW,CATLG,KEEP) mean?
Explain dfsort utility?
mainframe questions like basic&depth
What does IEBGENER do?
How can i execute 5th step without executing first 4 steps?