Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

problem with sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: problem with sort
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: 680
Location: NJ

PostPosted: Tue Jan 17, 2006 3:07 pm    Post subject: Sort problem
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    Post subject: need help in sorting
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    Post subject:
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 Moderator


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

PostPosted: Tue Jan 17, 2006 10:15 pm    Post subject:
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:

http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us