Whoops! Sent the first one without testing.
Bruce,
How about in EDITOR:
/set left=9
/cq / / to // in all
/cq / COPY/ to /COPY/ in all
/cq /COPY/ to / COPY/ in all
/set left = 1
Doug.
Doug Werth Beechglen Development Inc.
[log in to unmask] Cincinnati, Ohio
The opinions expressed do not necessarily represent the views or opinions
of Beechglen Development. They might, but not necessarily. They represent
solely the opinions of the author.
-----Original Message-----
From: Bruce Conrad <[log in to unmask]>
To: [log in to unmask] <[log in to unmask]>
Date: Thursday, April 23, 1998 5:33 PM
Subject: Editing a file, to line up columns
> Here's a question for you guru's out there.
> We use SpoolMate for managing distribution. It works great, but
> reporting on who gets what report isn't easy (unless you dedicate
> someone to update a screen/report of static data).
> So, I want to extract some information from the SCRIPT ksam file.
> So far, I've FCopied the file to an MPE file, then used QEdit to
> delete all the info the user doesn't want/need. I'm working on
> standardizing how info is entered into Composer, but in the
> meantime, I'm stuck with the messy format that it was done in
> previously. As such, the COPY statement does not start in the same
> column in every row. I was wondering if there was a (easy) way to
> manipulate this file to have the COPY column line up. I have many
> third party tools available...but if it's too hard, I won't bother.
>
> TIA. example of file:
>
> 20918 FSR0300B COPY 1 EACH PLAUSSEB
> 20921 FSR0300B COPY 2 EACH BURKEJ
> 20925 FSR0300F
> 20932 FSR0300F COPY 1 EACH LOGUE
> 20936 FSR0300F COPY 1 EACH CHIN
> 20942 FSR0400
> 20949 FSR0400 COPY 2 EACH BURKEJ
> 20955 FSR300R1
> 20962 FSR300R1 COPY 1
> 20968 FSRP0100
> 20975 FSRP0100 COPY 1
> 20988 FULLPRPL COPY 1 EACH OPERATOR
> 21001 GICLETR COPY 1 EACH REQ00001
> 21020 GLREPORT
> 21027 GLREPORT COPY 1 EACH LOGUE,CHIN
> 21034 GLREPORT COPY 1 EACH READING,LOGUE
> 21041 GLREPORT COPY 1 EACH LOGUE,CHIN,READING
> 21047 GLREPT
> 21066 HCMA12R1 COPY 3 EACH LINSKY
>
> Bruce Conrad, Software Control Analyst
> Havard Pilgrim Health Care
> Quincy/Boston, MA usa
> www.HarvardPilgrim.Org
> //members.aol.com/bhconrad/index.html
|