View previous topic :: View next topic
Author
Message
manjinder New User Joined: 04 Dec 2005Posts: 45 Location: pune
i am trying to sort variable length record file.my o/p file is defined with fixed block it is giving error MAXCC=16.
please tell me the way how to do this.
thanx in advance.
regards..
manjinder
Back to top
khamarutheen Active Member Joined: 23 Aug 2005Posts: 677 Location: NJ
Hi Manjinder,
Plz Get us ur coding so that it will b helpful to analyze the error which u have encountered.
Back to top
manjinder New User Joined: 04 Dec 2005Posts: 45 Location: pune
SYSOUT DD SYSOUT=*
SYSPRINT DD SYSOUT=*
SORTIN DD DSN=M.MI.SE,DISP=SHR
SORTOUT DD DSN=M.MA.SEQ2,DISP=(NEW,CATLG,DELETE),
DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),SPACE=(TRK,(1,2),RLSE),
UNIT=SYSDA,VOL=SER=MTPUN1
SYSIN DD *
SORT FIELDS=(1,4,CH,A)
this sortin file is defined with VB.
THANX IN ADVANCE.
regards...
manjinder
Back to top
nrsmca New User Joined: 25 May 2005Posts: 14
Hi,
Please try this ,
SYSOUT DD SYSOUT=*
SYSPRINT DD SYSOUT=*
SORTIN DD DSN=M.MI.SE,DISP=SHR
SORTOUT DD DSN=M.MA.SEQ2,DISP=(NEW,CATLG,DELETE),
DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),SPACE=(TRK,(1,2),RLSE),
UNIT=SYSDA,VOL=SER=MTPUN1
SYSIN DD *
SORT FIELDS=(5,4,CH,A)
bye,
NRSMCA
Back to top
Frank Yaeger DFSORT Developer Joined: 15 Feb 2005Posts: 7129 Location: San Jose, CA
To sort a VB file and convert it to an FB file, you need to:
1) Change the SORT statement starting position from 1 to 5 to account for the RDW
2) Use DFSORT's OUTFIL statement with VTOF and OUTREC parameters to convert from VB to FB.
So you need something like this:
Code:
SORT FIELDS=(5,4,CH,A)
OUTFIL VTOF,OUTREC=(5,80)
For more information on using VTOF, see:
www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst01.html#t11
Back to top
Please enable JavaScript!