gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] for i in ..... or work around?


From: Patrick
Subject: [open-cobol-list] for i in ..... or work around?
Date: Sun, 05 May 2013 17:38:54 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

Hi Everyone

I have been working hard on my first non-trivial program.

I have 15 fields that contain numbers that I would like to convert to certain text via an evaluate statement.

I guess I can copy the evaluate statement 15 times and then edit the control variable to one of each of these fields but I can if I can avoid a lot of copy and paste code, that would likely be best.

I was hoping to use a statement that looks roughly like this in bash

for field1 field2 field3 ; do something $i ; done

If I could put an evaluate statement inside it, I should be able to avoid a big copy paste operation.

Does anyone know if this is possible or if there is a workaround?

Thanks for reading-Patrick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]