Re: Can a 4GL program read an ASCII file?
Posted in 1994
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL
HoopsCraz (hoopscraz@aol.com) wrote: : I'm trying to create a process that will read in an ASCII file one record : at a time and update appropriate tables based on a key. The ASCII file : consists transaction headers that may have one or many detail lines : following them. : My question is this: Is it possible for a 4GL program to read directly : from : an ASCII file? I have looked briefly at using a C program, would this be : the : solution to choose, using PUSH and POP? : Any suggestions would be appreciated. : Nick Miles : American Tire & Service (division of Bridgestone/Firestone) : Rolling Meadows, IL : email: hoopscraz@aol.com Hi, Why not to try input redirection? Take a look at this ---------------------------------------------------- # test.4gl # DEFINE i smallint, a char(1) MAIN FOR i=1 to 10 PROMPT " " FOR CHAR A # Here variable a holds read character # The display statement is only for illustartive purpose DISPLAY a end FOR END MAIN After compilation if you use R4GL issue fglgo test <ascii.file >/dev/null This is only general idea on place to start from Hope it works on your computer Wiesiek Poszewiecki wiesiek@art.olsztyn.pl