HP3000-L Archives

March 2010, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"James B. Byrne" <[log in to unmask]>
Reply To:
James B. Byrne
Date:
Wed, 24 Mar 2010 12:41:15 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (64 lines)
On Tue, March 23, 2010 17:17, Pickering, John (NORBORD) wrote:
> Report headings are turned off with:
> SET NOHEAD
> Page breaks can be limited to one per 10,000 records with:
> SETPAGE LENGTH 0
>
> You probably also want:
> SET NOFORMFEED
> although this is the default for SET REPORT DEVICE DISC
>
>
> -----Original Message-----
> From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
> Behalf Of James B. Byrne
> Sent: Tuesday, March 23, 2010 5:15 PM
> To: [log in to unmask]
> Subject: Re: [HP3000-L] XML / QTP Question
>
> On Tue, March 23, 2010 16:38, Pickering, John (NORBORD) wrote:
>> What's wrong with QUIZ writing a report file to disc in which each
>> tag
>> is written it its own report line?
>> Report &
>>  Skip 1 "<tag1=" dataitem1 ">" &
>>  Skip 1 "<tag2=" dataitem2 ">" &
>> Etc.
>

Thank you very much for this advice.  XML generation using QUIZ is
simplicity itself now that I am reminded of the SET NOHEAD option.
SET NOHEAD also turns off automatic page ejection.

In case anyone else has a similar need in future, the QUIZ code
looks more like this in our application:

REPORT                                                              &
SKIP 01   TAB 007 '<ACCOUNT-DETAIL>'                                &
SKIP 01   TAB 009 '<BILLTO-ACCOUNT>'                                &
SKIP 01   TAB 011 BILLTO-ACCOUNT OF ACCOUNT-DETAIL                  &
SKIP 01   TAB 009 '</BILLTO-ACCOUNT>'                               &
SKIP 01   TAB 009 '<TAX-IDENTITY>'                                  &
SKIP 01   TAB 011 TAX-IDENTITY OF ACCOUNT-DETAIL                    &
SKIP 01   TAB 009 '</TAX-IDENTITY>'                                 &
.  .  .
SKIP 01   TAB 007 '</ACCOUNT-DETAIL>'


Works like a dream.  Of course, the excess space between tags has to
be handled by the xml document processor. However, the ease of
coding and additional clarity achieved in the resulting data file is
worth the added complexity in the downstream processing


-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:[log in to unmask]
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2