Double thanks Bill, once for the answer and again for the reply.  I also got 
that same advice privately from another expert source, but thanks to you I 
don't have to post the follow-up.  Good job!

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Bill Woodger
Sent: Monday, May 16, 2016 4:57 PM
To: [email protected]
Subject: SYNCSORT IFTHEN with OVERLAY: how to specify RDW?

Second things first. Your input data is 1,4,5. An RDW plus all the data from 
position five to the end of the record. There is no need for a WHEN=NONE to 
BUILD an identical record to the one that already exists.

Your problem is that you have not supplied any "column numbers" for your 
OVERLAY, so you automatically use the default column, which is one. From 
position one you put two bytes starting at 76 (byte 72 of data), then a 6B, 
then one byte from 1644, then a C, then one byte from 1668, then a C, then one 
byte from 1789, then a C, the one byte from 1812, then a C, then follows the 
rest of the data on your record undisturbed.

I think what you probably want is this:

 OPTION COPY                                      
 OUTREC IFTHEN=(WHEN=(05,02,CH,NE,X'0000',AND,    
                       05,02,CH,NE,X'FFFF'),
                OVERLAY=(76:C'6B',               
                         1644:C'C',1668:C'C',  
                         1789:C'C',1812:C'C')) 

As to your question, you are correct, you cannot change the RDW with an OVERLAY 
(or a PUSH, from WHEN=GROUP). 


On Monday, 16 May 2016 21:20:58 UTC+2, Farley, Peter x23353  wrote:
> I am using SYNCSORT to modify VB records (LRECL is > 2000), and this is my 
> SYSIN:
> 
> OPTION COPY                                      
> OUTREC IFTHEN=(WHEN=(05,02,CH,NE,X'0000',AND,    
>                       05,02,CH,NE,X'FFFF') ,      
>                OVERLAY=(76,2,C'6B',               
>                         1644,1,C'C',1668,1,C'C',  
>                         1789,1,C'C',1812,1,C'C')),
>         IFTHEN=(WHEN=NONE,BUILD=(1,4,5))          
> 
> However, I get the following error message:
> 
> WER235A  OUTREC   RDW NOT INCLUDED
> 
> I cannot see from the SYNCSORT documentation of the OVERLAY sub-parameter how 
> to legally specify the RDW field in the OPVERLAY value, since the doc clearly 
> says:
> 
> "The RDW cannot be overlaid." (page 2-198 in "SYNCSORT MFX for z/OS Release 
> 1.4")
> 
> Can anyone point me to the right way to specify the RDW here?
> 
> If it matters, the SYNCSORT version is:
> 
> SYNCSORT FOR Z/OS  1.4.1.0N
> 
> TIA for any assistance 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