FW: Progress programming

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

> ______________________________________________
> 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
>

[Non-text portions of this message have been removed]






---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.

[Non-text portions of this message have been removed]
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

> ______________________________________________
> 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
>


[Non-text portions of this message have been removed]
Also on Vantage 6.1, I've done some Progress programming, ie: Update a 'partDescription'
retrieving the 'new' description from a text file, however not from a 'list' in a text file.
If you can export your 'part no/ number02' list to a text file , you can read them in 1 at a time and update as needed ,using the 'INPUT FROM' 4GL function.


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

> ______________________________________________
> 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
>

[Non-text portions of this message have been removed]






---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

[Non-text portions of this message have been removed]
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

> ______________________________________________
> 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
>

[Non-text portions of this message have been removed]






---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

[Non-text portions of this message have been removed]