how to convert a file form fixed Length to variable length?

Answers were Sorted based on User's Feedback



how to convert a file form fixed Length to variable length?..

Answer / harsh

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

Is This Answer Correct ?    9 Yes 2 No

how to convert a file form fixed Length to variable length?..

Answer / naga

In recfm=fb is fixed. instead of fb put vb in record format
is variable file,in variable file extra 4 byte control
information is added

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More JCL Interview Questions

Suppose i have a file with 10 recs and i want to skip only the 7 th record and copy the rest into another file. How do i do it using SORT?

7 Answers   VS, Wipro,


how can the same proc be re-used and called by many jobs?

0 Answers   IBM,


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

2 Answers   Infosys,


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

1 Answers   Tesco,


What is primary allocation for a dataset?

4 Answers  






Explain the purpose of dd dummy statement?

0 Answers  


What is notcat 2 - gs?

0 Answers  


HOW TO CONVERT VARIABLE BLOCK TO FIXED BLOCK ?

1 Answers   IBM,


which parameter is used to check the syntax of a jcl without executing it?

0 Answers   IBM,


whats the diff bw the evaluate also and and?

0 Answers   CGI,


Explain about LMGET�read a logical record from a data set

1 Answers  


shall we concordinate two different length dataset in to a new date set.

6 Answers  


Categories