[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GNU-COBOL] edit program qs? (was PIC)
Randall Bart wrote :>
>> > > edit <value> <pic> [-b] [-s[l|t][s]]
>
>I have an ocean of Burroughs/Unisys knowledge and a shot glass of
>Linux/Unix, so correct me if I don't have the conventions correct. I think
>what I am envisioning is a program which you could call in a shell like this:
> `edit 123.45 $$$,$$$.99`
>and it would return this:
> " $123.45"
so basically take in a pic statement, then a value adn display what the
value would look like in that pic storage type??
I think i get the drift... not sure.
My experice with mainframes, is strictly limited to doing 370 assembler
for a class several yrs ago. I still ahve the yellow card. =)
>The old mainframe edit op-codes required the compiler to digest the PIC,
>but in this case the program should use the actual Cobol picture string,
>supplemented by switches for whatever needs special handling.
i am still confused, but i think i get the idea.
the words edit and op-codes is confusing me. I think its a communication
failure on my part. sorry, but it sounds like a good thing to add
to the todo list.
--
Chad Slaughter -- slaught at advancenet.net
--
This message was sent through the gnu-cobol mailing list. To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body. For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.