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

OUTREC RDW not created


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

New User


Joined: 04 Oct 2004
Posts: 2

PostPosted: Mon Oct 04, 2004 8:24 pm
Reply with quote

i have unloaded two fields(x(20) and x(10)) from a db2 table using D2P4PROC.
It automatically creates a PS file in VB format.In the next JCL
step i am sorting and copying only the last 20 characters into another
GDG in FB format.The sort card i used is
INCLUDE COND=(22,10,CH,GT,C' ')
SORT FIELDS=(1,20,CH,A)
OUTREC FIELDS=(1:11,10,11:22,10)
END

But the outrec statement is failing with the message
"outrec rdw not created"
any solutions?... icon_rolleyes.gif
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Oct 05, 2004 7:34 pm
Reply with quote

Since your input dataset is RECFM=VB, and your desired output is RECFM=FB, you need to instruct SORT to make the conversion. And, since the input dataset is VB, you must account for the 4-byte Record Descriptor Word (RDW) within the data for your field offsets:

Code:

 SORT FIELDS=(5,20,CH,A)
 OUTFIL INCLUDE=(27,10,CH,GT,C' '),VTOF,
  OUTREC=(1:16,10,11:27,10)
Back to top
View user's profile Send private message
Bindu Bhama

New User


Joined: 04 Oct 2004
Posts: 2

PostPosted: Wed Oct 13, 2004 1:05 am
Reply with quote

Thanks a lot.

The following also will work for VB to FB format.
OUTREC FIELDS=(1:15,10,11:26,10),CONVERT
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 How to read unpacked field created in... DFSORT/ICETOOL 11
No new posts Issues with outrec overlay while extr... SYNCSORT 7
No new posts SEQNUM with TRA=ETOA in OUTREC SYNCSORT 5
No new posts Outrec IFTHEN builds data in wrong po... DFSORT/ICETOOL 6
No new posts Divide and edit the sum - OutRec DFSORT/ICETOOL 5
Search our Forums:

Back to Top