how to read a comma separated value file using SQR?

i have a CSV file, and it is having some 100 lines

how to read the content using SQR

Views: 255

Reply to This

Replies to This Discussion

Hello,

You can open the file and read a line at a time.

Then use the unstring command to read each value separated by a comma.

Hope that helps.
these will be the steps.
1. open the file.
2. read each line using the read command. after you read them, keep them in individual variables. you need to do this in a while loop till the end of file.
.
close the file.

You will get the syntax in a sqr guide. sqr guide is available in peoplebooks.
Try this file. I've been using this since 2001. It was developed by Ray Ontka.
Attachments:
thanks a lot Richard Schnitz,,,


from rani
This question was recently asked not too long ago.

Look at this thread

Read a CSV File

Good Luck

RSS

© 2012   Created by PSoftPros.

Badges  |  Report an Issue  |  Terms of Service