if a dataset is already created with fixed length but after
that i want to change fixed length to variable length then
how is it possible

Answer Posted / varsha

You can convert an FB data set to a VB data set with
OUTFIL's FTOV parameter. Each VB output record has a 4-byte
RDW followed by the corresponding data from the FB input
record, and the length in the RDW is the length of the FB
record plus 4.

The following JCL and DFSORT control statements convert the
bookstore data set records from FB to VB.

//FBVB JOB A92,PROGRAMMER
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=A123456.SORT.SAMPIN,DISP=SHR
//VBOUT DD DSN=A123456.SORT.VSAMP,DISP=
(NEW,CATLG,DELETE),
// UNIT=3390,SPACE=(CYL,(5,5))
//SYSIN DD *
OPTION COPY
OUTFIL FNAMES=VBOUT,FTOV
/*Because the LRECL of SORT.SAMPIN is 173 bytes, each VB
record in SORT.VSAMP is 177 bytes (the FB record length of
173 plus 4 for the RDW) and SORT.VSAMP is given an LRECL of
177.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

example for sub strings ? and refernce modifications whit output pls

2068


Which Search verb is equivalent to PERFORM…VARYING?

861


Write a program to explain size error.

884


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

969


Which division and paragraphs are mandatory for a COBOL program?

921


What is rmode(any) ?

898


Are you comfortable in cobol or jcl?

805


How are the next sentence and continue different from each other?

1011


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2286


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1820


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5082


what is the use of outrecord?

1968


How do u write test cases?

1818


Name the sections present in data division.

901


what is search and searchall?what is the diffrence between them?give an best example?

6170