Posted: Fri Dec 09, 2005 10:49 am Post subject: Can we have multiple conditions for the CHANGE statement
Hi
I am trying to do a sort step whcih can add columns based on 2 fields. The 2 fields are at possitions 40,1,CH and 212,2,BI.
The condition is this
Code:
IF (40,1) = 'P' Then
IF (212,2) = X'0002' or X'0001' Then
MOVE (226,4) TO the position 33
ELSE
MOVE X'00000000000C' TO the position 33
END-IF
END-IF
I tried to do the below Overlay statement but I feel it is not supported by SYNCSORT. We do not have DFSORT. What I would like to know is another alternative to the below. I understand that I could do it easily by splittig the process into 2 SORTs but is there a way I could do it with one.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Dec 09, 2005 11:35 am Post subject:
Quote:
I tried to do the below Overlay statement but I feel it is not supported by SYNCSORT.
With DFSORT, you could do it with IFTHEN. But only DFSORT supports IFTHEN and OVERLAY. Syncsort does not support these features. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum