HP3000-L Archives

July 2000, 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:
"Newton, Ernie" <[log in to unmask]>
Reply To:
Newton, Ernie
Date:
Fri, 28 Jul 2000 16:25:09 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (85 lines)
Thank you Neil,

It was the EXTRACT that assigns the value.  When looking in the manual, I
skimmed right past EXTRACT, thinking it couldn't possibly be there.

I love this list...I almost don't have to think.

-----Original Message-----
From: Neil Armstrong [mailto:[log in to unmask]]
Sent: Friday, July 28, 2000 4:13 PM
To: [log in to unmask]
Subject: Re: [HP3000-L] Suprtool


Ernie,

Without seeing any sample code, the short answer is:

You define a field with a define command:

define brown,1,1,byte

You fill it with data by using extract:

ext brown = "Y"

in someotherfile
if widgits = "XYZ"
ext brown = "Y"
output somefile,link
set squeeze off
xeq
in someotherfile
if widgits<> "XYZ"
ext brown="N"
output somefile,append
xeq

The basic premise here is that you have to create an output file with the
,link option but retain the eof in the first task then do the reverse if
criteria and append to the file.

Neil

----- Original Message -----
From: Newton, Ernie <[log in to unmask]>
To: <[log in to unmask]>
Sent: Friday, July 28, 2000 4:27 PM
Subject: Suprtool


> Greetings,
>
> I am trying to create a comma-delimited self-describing file using
Suprtool.
> Within that self-describing file, I would like to have some items from the
> dataset as well as a couple of items that I make up. I am doing a FIND and
> OUTPUT,LINK to create the following.
>
>       FILLER-1             X1      1
>       WIDGITS              X5      2  <<Sort# 1 >>
>       FILLER-2             X1      7
>       BROWN                X1      8
>       FILLER-3             X1      9
>       DARK                 X1     10
> Limit: 4000  EOF: 1887  Entry Length: 10  Blocking: 128
>
> In the above example, WIDGITS is in the dataset, but BROWN and DARK are
not.
> Along with creating BROWN and DARK, I would like to give them a value of
"Y"
> or "N".
>
> I know this can be done, as I did it a year ago, but due to my poor
> documenting habits, I can find no record of how I accomplished it.
>
> How did I do it???
>
> Thanks,
>
> Ernie Newton
> Computer Systems Specialist
> Yolo County Office of Education
> [log in to unmask]

ATOM RSS1 RSS2