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

Answers were Sorted based on User's Feedback



if a dataset is already created with fixed length but after that i want to change fixed length to v..

Answer / vibhu

we can do that using Jcl and passing FTOV in the sysin
parameter

Is This Answer Correct ?    8 Yes 0 No

if a dataset is already created with fixed length but after that i want to change fixed length to v..

Answer / 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

if a dataset is already created with fixed length but after that i want to change fixed length to v..

Answer / mainframesasi

No it is not possible the values which we have defined
while creating dataset in 3.2 is the final.

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More COBOL Interview Questions

What is R-mode and A-mode?

3 Answers   TCS,


Give some examples of command terminators?

1 Answers  


We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.

1 Answers  


How can you display the SPOOL information ?

2 Answers  


how can we code index in an array of cobol pgm?

1 Answers   Wipro,


What is the Importance of GLOBAL clause According to new standards of COBOL?

2 Answers   Infosys,


i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.

9 Answers   Syntel,


how to pass 100 to s9(4) how r they inserted ?

3 Answers   TCS,


if one main program ,n -subprograms are then which call you follow ?why reasonuhg

4 Answers   UHG,


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

1 Answers   Accenture,


What is the use of LINKAGE SECTION?

1 Answers  


what is the difference between COBOL2 AND COBOL390?

1 Answers   L&T,


Categories