Answered my own question by experimentation.  Seems that OVERLAY is just like 
BUILD except that it does not permit the shorthand notation of 
"position:position" at the end of the specifications to mean "from here to the 
end of the record, however long it may be".  And OVERLAY is not needed to 
overlay values in certain positions, BUILD will do that just fine.

For the archives, this is the revised OUTREC which works:

OUTREC IFTHEN=(WHEN=(32,1,CH,EQ,C'1'),      FOR RECORDS WITH THIS VALUE ONLY
                 BUILD=(1,4,5:5,27,        RDW + UP TO FIRST CHANGE 
                                 32:C'7X',            FIRST CHANGE
                                 34:34,323,         UP TO NEXT CHANGE  
                                 358:C'F#',          NEXT CHANGE
                                 360:360,5,         UP TO LAST CHANGE  
                                 366:C'C',            LAST CHANGE
                                 367:367)),         REST OF RECORD     
               IFTHEN=(WHEN=NONE,          ALL OTHER RECORDS 
                      BUILD=(1,4,5:5))                  OUTPUT AS-IS      

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Farley, Peter x23353
Sent: Wednesday, October 21, 2015 5:29 PM
To: [email protected]
Subject: Syncsort question: Why do I get error RDW NOT INCLUDED?

I am trying to set up a Syncsort OUTREC to overlay certain fields in VB 
records.  This is the OUTREC I have:

OUTREC IFTHEN(WHEN=(0032,1,CH,EQ,C'1'),
               OVERLAY=(1,4,
                        32:32,2,C'7X',
                   358:358,2,C'F#',
                   366:366,1,C'C')),
        IFTHEN(WHEN=NONE,
               BUILD=(1,4,5:5))

I get these Syncsort messages:

WER276B  SYSDIAG= 1680787, 4697249, 4697249, 4893065
WER164B  1,028K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B     156K BYTES RESERVE REQUESTED, 1,000K BYTES USED
WER146B  24K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I  SORTIN   : RECFM=VB   ; LRECL=  8004; BLKSIZE= 27998
WER073I  SORTIN   : DSNAME=HLQ.INPUT.FILE
WER235A  OUTREC   RDW NOT INCLUDED
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000

I think I am including the RDW in each of the IFWHEN phrases (1,4).  Can anyone 
tell me what I am doing wrong here?

TIA for any help you can provide.

Peter
--

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to