Posted: Mon Mar 14, 2005 11:17 pm Post subject: Replacing leading spaces by zeroes thru sort
I have to replace all leading spaces in column positon 1 to 6 with zeroes. Input file is of lenght 80 (FB). How can this be done thru sort or batch file-aid ?
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Mar 15, 2005 11:06 am Post subject:
And by "zero", do you mean a character zero (C'0' = X'F0') or a binary zero (X'00')? _________________ 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: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Mar 16, 2005 11:02 am Post subject:
Naveen,
Here's a DFSORT job that will do what you asked for. It uses the new IFTHEN and OVERLAY features of DFSORT available with z/OS DFSORT V1R5 PTF UQ95214 and DFSORT R14 PTF UQ95213 (Dec, 2004). If you have DFSORT, but you don't have the Dec, 2004 PTF installed, ask your System Programmer to install it (it's free).
For complete details on all of the new DFSORT and ICETOOL functions available with the Dec, 2004 PTF, see:
_________________ 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