IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

problem with sort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manjinder

New User


Joined: 04 Dec 2005
Posts: 45
Location: pune

PostPosted: Tue Jan 17, 2006 2:47 pm
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue Jan 17, 2006 3:07 pm
Reply with quote

Hi Manjinder,

Plz Get us ur coding so that it will b helpful to analyze the error which u have encountered.
Back to top
View user's profile Send private message
manjinder

New User


Joined: 04 Dec 2005
Posts: 45
Location: pune

PostPosted: Tue Jan 17, 2006 3:18 pm
Reply with quote

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
View user's profile Send private message
nrsmca

New User


Joined: 25 May 2005
Posts: 14

PostPosted: Tue Jan 17, 2006 4:11 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Jan 17, 2006 10:15 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top