title: obtain returned value in ILE cobol program
body: <p>I am trying to get the returned value from a C program in a cobol program. However, they mention this:</p>
  <p><a href="https://www.ibm.com/docs/en/i/7.4?topic=statement-givingreturning-phrase" rel="nofollow noreferrer">returning phrase</a></p>
  <p>&quot;The GIVING/RETURNING phrase is not allowed for programs called with a linkage type of program.&quot;</p>
  <p>So what is the alternative? how can I obtained the returned value in a cobol program? Cannot find it.
  Thanks.
  -- EDIT
  I found this <a href="https://www.ibm.com/docs/en/rdfi/9.6.0?topic=SSAE4W_9.6.0/com.ibm.etools.iseries.ilecbl.doc/LNC2762.htm" rel="nofollow noreferrer">https://www.ibm.com/docs/en/rdfi/9.6.0?topic=SSAE4W_9.6.0/com.ibm.etools.iseries.ilecbl.doc/LNC2762.htm</a>
  They indicate &quot;change the linkage of the called program&quot; but i don't know how to do that.</p>