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

what is this RDW error


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Thu Feb 02, 2006 1:40 pm
Reply with quote

Hi,

I am trying to sort the input file and wants the output with few fields of input file....I am using Include COND & outrec for that....but I am getting an abend U0016 with sysout msg "OUTREC RDW NOT INCLUDED"....

I wrote the sort card as

SORT FIELDS=COPY
OUTREC FIELDS=(1:23,13,14:C'#',15:46,10,
25:C'#',26:112,1,
27:C'#',28:124,2,
30:C'#',31:113,1,
32:C'#',33:76,8,
41:C'#',42:184,28,
70:C'#',71:442,10,
81:C'#',82:330,4,
86:C'#',87:286,8,
95:C'#',96:56,4,
100:C'#',101:214,2)
INCLUDE COND=(56,4,CH,EQ,C'88CR',AND,
(214,2,CH,EQ,C'AP'))

plz try to help me asap....its urgent.....

and the output dataset parameters are......
DSN=..............
DCB=(RECFM=FB,LRECL=102,BLKSIZE=0),
DISP=(NEW,CATLG,DELETE),
UNIT=TESTDA,
SPACE=(CYL,(100,100),RLSE)

Thanks,
Rajesh
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Feb 02, 2006 1:45 pm
Reply with quote

RDW stands for 'record descriptor word'. SORT adds RDW to every variable-length file processed as a 4 byte number at start of record.

Try to enlarge your LRECL to 106.

O.
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Thu Feb 02, 2006 2:45 pm
Reply with quote

HI O,

But my output file's RECFM=FB but the input file's RECFM=VB...so is there any need to enlarge LRECL......

Thanks,
Rajesh
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Feb 02, 2006 2:48 pm
Reply with quote

Yes.
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: Thu Feb 02, 2006 10:21 pm
Reply with quote

For a VB input file, the first field you specify for OUTREC must be or include the 4-byte RDW in positions 1-4, and the first data byte starts in position 5, not position 1.

Code:

   OUTREC FIELDS=(1:1,4,5:23,13,...)


Adjust all the columns and the LRECL accordingly.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top