Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Thu Dec 10, 2009 12:32 pm Post subject:
BUILD and OVERLAY are not allowed together in the same IFTHEN clause. You can use them in separate IFTHEN clauses or you can use multiple items in one BUILD or in one OVERLAY. I don't really know what you're trying to do with that IFTHEN clause, so I can't tell you how to fix it.
If you want more help, tell me what you're trying to do. Show the expected output for your input example and explain the rules for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input file and output file. _________________ 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
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
Posted: Mon Dec 14, 2009 5:08 pm Post subject:
MF,
In the future, please indicate which set of Sort products your site is using. DFSORT, Syncsort, CA-Sort, or whatever. The solutions may vary depending on your product. _________________ ....Terry
OUTFIL instead of INREC would have worked as well. I suspect you're trying to do something else, but you haven't explained what so I don't know if your "solution" is an efficient one or not, although I suspect whatever it is you're trying to do doesn't really require four passes. _________________ 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
I am trying to realign the input data as shown in output using OUTFIL. The requirement is to put a '0' in 5th column and move data from 5th column onwards to 6th column if 16th column is blank.
Input - LRECL=80,RECFM=FB
Code:
----+----1----+----2
41XXXXXXXXXX
42YYYYYYYYY
Output - LRECL=80,RECFM=FB
Code:
----+----1----+----2
41XXXXXXXXXX
042YYYYYYYYY
Thanks Frank. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Joined: 14 Jan 2009 Posts: 37 Topics: 0 Location: USA
Posted: Tue Dec 15, 2009 3:44 pm Post subject:
MF:
I have restricted the below coding example to the specifics of your latest posting. I have coded an OUTFIL statement which uses IFTHEN to detect if the byte in position 16 is a blank; if it is a blank, a record is built that contains the first 4 bytes of the record, followed by a zero, followed by the remainder of the record, displaced by one byte to compensate for the inserted zero. Please note that the last byte (if any) of the 80-byte input record would be truncated whenever the byte in position 16 is a blank.
Please contact me if you require further assistance with this matter. _________________ Brian Wood
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
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