"Wytevette" <philmoore (AT) atvpix (DOT) com> wrote
Quote:
Hi Lance,
It worked great for me. Here is what I ended up with:
OPEN '','PMCM.CMMT' TO PMCM.CMMT ELSE STOP 'PMCM.CMMT'
CT=0 ; F1=1 ; F2=2
CHANGED=0 ; PRINT.ONLY=1
SELECT PMCM.CMMT |
[snip]
Quote:
END
Thank you for your help.
Phil |
That's all great and you could also just deal with the items you want by
changing the BASIC SELECT to an EXECUTE statement such as:
EXECUTE \SELECT PMCM.CMMT WITH F2 = "SLOW MOVEMENT"\
Note the use of back-slash bounding the entire statement and the double
quote bounding the literal "SLOW MOVEMENT". This also pre-supposes the
dictionary item for 'F2' is actually called 'F2' in the dictionary, if not
make appropriate substitute.
The execute will select only the items with the specified string and then
you would not need to loop thru the entire file (can be a big time saver if
you have lots of logic to isolate items) because Basic SELECT just starts at
the first item and follows all of the subsequent record links until it runs
out of data.
Check your doco for 'EXECUTE' statements as Universe might differ slightly
from what I have used (Pick, D3, Mentor and Ultimate).
Happy coding...
BFaux