Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF FIELD EQ (HOLD_FILE)

Status
Not open for further replies.

LeonelSanchezJr

Programmer
Jan 26, 2001
522
US
I need to create a HOLD file with DRIVER_NUMBERS.
Then, I need to query a second table based on the DRIVER_NUMBERS that exist in the previous HOLD file.

I think the logic is like this.

TABLE FILE CAR
PRINT
CAR
WHERE CAR EQ 'BMW';
ON TABLE HOLD AS DRIVER FORMAT FOCUS

TABLE FILE MY_CARS
PRINT
CAR2
WHERE CAR2 EQ (DRIVER);
END

But I am not sure of the logic syntax...

Thanks,

Leo ;-)
 
Reading values from an external file requires the file to be SEQUENTIAL. Take out the FORMAT FOCUS when you HOLD the file, and it'll do what you want.
 
Sorry, just re-read you original message.

To use the syntax 'EQ (ddname)', you use an IF test:

IF fieldname EQ (ddname)

to use a WHERE test, the syntax is:

WHERE fieldname IN FILE ddname
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top