Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us