Sample 'starting point' code from Open-Edge Development Book: ....................................................................................
Input from files A data file (not a database table) that contains information on new customers might look like the following example:
i-datf1.d
90 "Wind Chill Hockey" BBB
91 "Low Key Checkers" DKP
92 "BingÂ’s Ping Pong" SLS
This file is in standard Progress format. That is, blanks separate the field values. Field values that contain embedded blanks are surrounded by quotation marks (“ ”). Later sections in this chapter discuss using alternate formats.
You can write a Progress procedure and tell that procedure to get its input from the i-datf1.d file, as shown in Figure 5–6.
Figure 5–6: Redirecting the unnamed input stream The SET statement, which normally gets its input from the terminal, gets its input from the i-datf1.d file. The cust–num field uses the first data item, 90. The name field uses the next quoted data item, “Wind Chill Hockey,” etc. Each time Progress processes a data entry statement, it reads one line from the file.
Input from devices, directories, and the terminal ...............................................................................................................
Babette Welch <bwelch@...> wrote: More info..
We are running Vantage 6.1
I have written various .p programs
compiled them to .r
run thru Vantage-Basic > Command Window
In this case there are too many parts and I want code to work with an
outside list.
Thanks
BW
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
[Non-text portions of this message have been removed]
Input from files A data file (not a database table) that contains information on new customers might look like the following example:
i-datf1.d
90 "Wind Chill Hockey" BBB
91 "Low Key Checkers" DKP
92 "BingÂ’s Ping Pong" SLS
This file is in standard Progress format. That is, blanks separate the field values. Field values that contain embedded blanks are surrounded by quotation marks (“ ”). Later sections in this chapter discuss using alternate formats.
You can write a Progress procedure and tell that procedure to get its input from the i-datf1.d file, as shown in Figure 5–6.
Figure 5–6: Redirecting the unnamed input stream The SET statement, which normally gets its input from the terminal, gets its input from the i-datf1.d file. The cust–num field uses the first data item, 90. The name field uses the next quoted data item, “Wind Chill Hockey,” etc. Each time Progress processes a data entry statement, it reads one line from the file.
Input from devices, directories, and the terminal ...............................................................................................................
Babette Welch <bwelch@...> wrote: More info..
We are running Vantage 6.1
I have written various .p programs
compiled them to .r
run thru Vantage-Basic > Command Window
In this case there are too many parts and I want code to work with an
outside list.
Thanks
BW
> ______________________________________________[Non-text portions of this message have been removed]
> From: Babette Welch
> Sent: Friday, December 07, 2007 8:39 AM
> To: vantage@yahoogroups.com
> Subject: Progress programming
>
> Hello everyone:
>
> I want to change about 7,000 parts.
> Inserting a number into the field part.number2
>
> I saw these notes before but can not find them.
> How do you use an external file to
> match a part number
> then move a number into the part.number2 field?
>
>
> Thanks
>
> Babette Welch
> IT Director
> bwelch@...
> (906)226-9747 ext: 235
> ARGONICS, INC.
> Performance Polyurethanes
>
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
[Non-text portions of this message have been removed]