Link to home
Start Free TrialLog in
Avatar of GalaxiePete
GalaxiePete

asked on

Pervasive Looping through Variables

I'm questioning if there is a way in Pervasive to loop through a text file of a single record. Say for instance i have ID's in a txt file that i would like updated. I guess the best way to describe it is much like how you would loop through a txt file in a Windows Batch file.

Is there something like UPDATE table SET column = 'this' WHERE id = '@txt_file_here.txt';

It would then loop through how many records i have. I know i can inject it into a dummy database and run the update that way just trying to save a few steps.
Avatar of Mirtheil
Mirtheil
Flag of United States of America image

There's no way to do that directly in Pervasive.  You'd need to write (or use) a program that could read the text file and fill in the variable value.  
ASKER CERTIFIED SOLUTION
Avatar of Bill Bach
Bill Bach
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GalaxiePete
GalaxiePete

ASKER

This is great thanks, yeah MySQL has a command for loading direct text files in this same way. This is great, thanks so much.