gnucobol-users
[Top][All Lists]
Advanced

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

Re: [open-cobol-list] nested call statements, best practices


From: Patrick
Subject: Re: [open-cobol-list] nested call statements, best practices
Date: Tue, 17 Sep 2013 13:27:14 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130809 Thunderbird/17.0.8

Thanks Michael

I was thinking about reposting, there was missing information I should have included and the mailing list reformatted my code so it was really hard to read.

Here is what I am trying to do in non-Cobol-ish pseudo code

Example 1:

cFunction = would be a call statement calling cFunction
cob-str-to-C = a utility to trim strings and append nul byte
incompatible = a picture based Cobol string

cFunction ( cob-str-to-C ( incompatible ) )



I know I could do something like


Example 2

temp = cob-str-to-C ( incompatible )

CFunction ( temp )

But then I have to use Cobol storage for the output of cob-str-to-C and that might be an issue. i was thinking that a nested call result would not have to be passed back into the PICTURE based system..

Does this make any more sense? Sorry to everyone for the last post.

Thanks







reply via email to

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