Line Counting in QUIZ
Guy Werry
guy.werry at hbms.ca
Tue Oct 24 08:09:06 CDT 2006
I think that you'd be better off to use the COUNT keyword. Here's a really basic example:
> acc employee-master
> rep department count
> go
2006/10/24
DEPARTMENT COUNT
1
78 2
10 3
10 4
78 5
76 6
10 7
One problem you will have is with the blank lines ... if they are part of a 'skip 3' that you've dis-assembled, then the COUNT won't help you because the lines are generated by ONE report statement, that is, one record complex.
At that point, you might want to consider using an OS script ... would be nice if we knew what platform.
Guy L. Werry
Senior Systems Analyst
Hudson Bay Mining & Smelting Co., Limited.
-----Original Message-----
From: powerh-l-bounces+guy.werry=hbms.ca at lists.sowder.com
[mailto:powerh-l-bounces+guy.werry=hbms.ca at lists.sowder.com]On Behalf Of
Jeff Hoffman
Sent: Tuesday, October 24, 2006 7:24 AM
To: powerh-l at lists.sowder.com
Subject: Re: Line Counting in QUIZ
Adam
You could write to disk file, You may have to prefix a skip with " " (eg "
" skip " " skip " " skip) to make sure you get at least a single character
per line.
If this is just a once off, then use an editor or o/s script to add a line
number.
If something more permanent is required then define a file that will read
the disk file you just wrote then you can add the line number.
Jeff
At 10:46 AM 24/10/2006, you wrote:
>Hi there,
>It is about 2 years since I have coded in Powerhouse, but due to the
>need to get some data out of the old system, I am asking for some
>assistance.
>
>I have an existing .qzs file that I need to run, but need to put
>additional information including a 'line number' at the beginning of
>each line, including blank lines.
>I have added the other information, and expanded out each 'skip 3' into
>3 individual 'skip' instructions with the appropriate information being
>displayed.
>
>The problem is I don't know how to add a 'line number' to it. How can I
>increment a count for each line?
>
>Your assistance would be most helpful.
>
>Thanks
>
>
>
>Adam Robertson
>Division of Information Technology
>Charles Sturt University
>Leeds Parade
>Orange NSW 2800
>Phone: 02 6365 7967
>Fax: 02 6365 7629
>Mobile: 0439 310 793
>arobertson at csu.edu.au
>www.csu.edu.au
>
>The Commonwealth Register of Institutions and Courses for Overseas
>Students (CRICOS) Provider Number is 00005F for Charles Sturt University
>and the Charles Sturt University Language Centre.
>
>
>--
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l at lists.sowder.com
>Subscribe: "subscribe" in message body to
>powerh-l-request at lists.sowder.com
>Unsubscribe: "unsubscribe <password>" in message body to
>powerh-l-request at lists.sowder.com
>http://lists.sowder.com/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.
>Add 'site:lists.sowder.com powerh-l' to your search terms to search the
>list archive at Google.
--
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request at lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.
More information about the powerh-l
mailing list