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
 
OUTREC RDW not created

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: OUTREC RDW not created
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

Moderator Team Head


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

PostPosted: Tue Oct 05, 2004 7:34 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am
No new posts OUTREC FILELDS FAILS WITH ICE126A 2 ... balaji81_k DFSORT/ICETOOL 8 Sat Jul 02, 2016 1:22 am

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