View previous topic :: View next topic
|
Author |
Message |
madhus
New User
Joined: 18 May 2010 Posts: 12 Location: chennai
|
|
|
|
Hi All,
I have pgm like below
Code: |
//STEP040 EXEC SORTD5
//SORTIN DD DSN=A515322.DCAP.NT.DCA702.DCAFILE.REC2,
// DISP=SHR
//SORTOUT DD DSN=A515322.DCAP.NT.DCA702.EDITED.REC2,
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(800,200),RLSE),
// DCB=(RECFM=VB,LRECL=133,BLKSIZE=27998)
//SYSIN DD *
SORT FIELDS=COPY
INREC FIELDS=(27,133)
/* |
I am getting following error
SYSIN :
SORT FIELDS=COPY
INREC FIELDS=(27,133)
WER276B SYSDIAG= 200594, 1009661, 1009661, 1363575
WER164B 8,884K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 1,012K BYTES USED
WER146B 12K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=VB ; LRECL= 299; BLKSIZE= 27998
WER235A INREC RDW NOT INCLUDED
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Can any one explain how to rectify |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I believe for a VB dataset the correct syntax would be:
INREC FIELDS=(1,4,27,133) |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
WER235A INREC RDW NOT INCLUDED |
FB and VB records are treated differently by the sort products. You need to include the RDW if you are creating/copying a VB file. |
|
Back to top |
|
|
madhus
New User
Joined: 18 May 2010 Posts: 12 Location: chennai
|
|
|
|
INREC FIELDS=(1,4,27,133)
What are 1,4 |
|
Back to top |
|
|
madhus
New User
Joined: 18 May 2010 Posts: 12 Location: chennai
|
|
|
|
Where do we have to include RDW |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
madhusudhanreddysurakanti wrote: |
Where do we have to include RDW |
Kevin has shown you the solution. What is the difference between his code and your code.
Also, you will need to amend the LRECL attribute in your JCL to cater for the RDW.
For your question what are 1,4 .................. the RDW perhaps |
|
Back to top |
|
|
|