how to convert a file form fixed Length to variable length?
Answers were Sorted based on User's Feedback
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 |
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 |
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?
how can the same proc be re-used and called by many jobs?
What is catelog procedure and how many catelog procedure to use in one job?
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
What is primary allocation for a dataset?
Explain the purpose of dd dummy statement?
What is notcat 2 - gs?
HOW TO CONVERT VARIABLE BLOCK TO FIXED BLOCK ?
which parameter is used to check the syntax of a jcl without executing it?
whats the diff bw the evaluate also and and?
Explain about LMGET�read a logical record from a data set
shall we concordinate two different length dataset in to a new date set.