Link to home
Start Free TrialLog in
Avatar of Ross Turner
Ross TurnerFlag for United Kingdom of Great Britain and Northern Ireland

asked on

4GL Looping and export to CSV file

Hi EE,

i've never done programming, but i'm trying to get a loop to work in progress

all i'm after doing is getting the code below to export the same again and again on different lines a 100 times.

i know only one line is been update in the table so it only exports the one line on the csv

can anyone help me

Cheers

Ross
output to value ("c:\test.csv").
  
		 
		     for each ttud01 where ttud01.rowmod = 'U':
			     export delimiter ',' ttud01.Key1 ttud01.Key2 ttud01.Key3 ttud01.Key4  skip.
		     end.
			

     output close.

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ahensch
ahensch
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 Ross Turner

ASKER

When I used your code... Which by the way i was very excited about it came up with the error can't understand after vCount I double checked the code and it's spot on... Any ideas ??? But thank you so much for your help so far.

Ross
REPEAT vCount = 1 TO 100:
HI  ahensch, thank you so much for your help with this little bit of code. i've never been so happy to see a csv file in a folder as i was today.

i might need your help again in the not to distant future.

Thank you

Ross