Line Counting in QUIZ
Joe Boyle
atla38 at dsl.pipex.com
Tue Oct 24 09:09:34 CDT 2006
As you want to number blank lines also ( and assuming your aren't on MPE
whose editor allows you to add line numbers to a text file ) my guess is
that you will have to do something like the following :-
1. write the report output to a diskfile (without the numbers )
2. create a portable subfile with a dummy element say 132 chars in length
3. overwrite the data part of the portable subfile with the report diskfile
4. then use syntax below
can cle
set page wid 200
acc * portable_subfile
sorted on etc...
rep count ps_dummy_element_132
go
-----Original Message-----
From: powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com
[mailto:powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com] On Behalf Of
Jeff Hoffman
Sent: 24 October 2006 13:24
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20061024/aabca4fa/attachment-0001.html
More information about the powerh-l
mailing list