Subject: | |
From: | |
Reply To: | Pickering, John (NORBORD) |
Date: | Wed, 24 Mar 2010 12:43:56 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I'd probably add
SET REPORT SPACING 0
to suppress QUIZ's default behaviour of putting two spaces between report items.
----- Original Message -----
From: James B. Byrne <[log in to unmask]>
To: Pickering, John (NORBORD)
Cc: [log in to unmask] <[log in to unmask]>
Sent: Wed Mar 24 12:41:15 2010
Subject: RE: [HP3000-L] XML / QTP Question
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
|
|
|