Posted: Tue Oct 03, 2006 3:27 pm Post subject: Reformatting a report using ICETOOL/SORT
Hi,
I have an excel report that I have ftp'd to the mainframe. I need to know if it is possible to expand a column on the mainframe. Here is a snapshot the report:
Code:
METRO MARKET ACTIVITY
REGION 71
METRO MARKET: MINNEAPOLIS, MINNESOTA - SUBURBAN
TERRITORY: 02
COUNTIES:
YTD PERIOD # OF YTD % LOSS %
THROUGH: AGCY DWP INC RATIO COMM
______________ ____ __________ ____ _____ ____
DECEMBER 2004 54 34,370,101 4 35 21
DECEMBER 2005 55 35,868,651 4 53 24
METRO MARKET ACTIVITY
REGION 71
METRO MARKET: MINNEAPOLIS, MINNESOTA - SUBURBAN
TERRITORY: 04
COUNTIES:
YTD PERIOD # OF YTD % LOSS %
THROUGH: AGCY DWP INC RATIO COMM
______________ ____ __________ ____ _____ ____
DECEMBER 2004 54 18,370,101 4 35 21
DECEMBER 2005 55 19,868,651 4 53 24
Note: AGENCY COUNTS ARE BASED ON THE NUMBER OF AGENCY CODE NUMBERS ISSUE WITHIN THE METRO MARKET AREA. INCLUDES AIDCO.
I need to expand YTD DWP column by 4 and compress YTD PERIOD THROUGH: by 4 bytes. I know I can do using a COBOL program, but want to know if it is possible using SORT or ICETOOL.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Oct 03, 2006 5:05 pm Post subject:
You can use DFSORT IFTHEN clauses to pick out the rows you want and expand or compress them however you like. I can't show you the exact job because you haven't shown what you want the output report to look like and I can't figure out what positions your data is actually in.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Oct 04, 2006 10:18 am Post subject:
The SYT message indicates you're using Syncsort, not DFSORT. I'm a DFSORT developer. DFSORT and Syncsort are competitive products. I'm happy to answer questions on DFSORT and DFSORT's ICETOOL, but I don't answer questions on Syncsort. _________________ 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