Page 1 of 1

Use of ?SOURCE

PostPosted: Wed Oct 24, 2018 5:55 pm
by saurabh khare
Hi I am analysing the COBOL-DB2 code wherein I have encountered with part of cobol code as :

*-------------------------------------*
* Source-in COBOL table images here *
*-------------------------------------*
?SOURCE =USREXTD ( INVOKE )
/
?SOURCE =FIDD ( INVOKE )
/
?SOURCE =FIDD ( INVOKE-11 )

Can anyone please explain the meaning of it in detail.

Thanks,
Sam

Re: Use of ?SOURCE

PostPosted: Wed Oct 24, 2018 6:02 pm
by enrico-sorichetti
at first glance it looks like some kind of <preprocessor> control card

but the best source of information would be Your colleagues

Re: Use of ?SOURCE

PostPosted: Wed Oct 24, 2018 6:25 pm
by Robert Sample
It is not standard COBOL, so most likely it is either a package installed at your site or something written at your site for a specific purpose. If it is a package, it is pretty rare as I've never (in more than 40 years of COBOL development and support) heard of a ?SOURCE statement. As otherwise stated, your BEST information source will be your coworkers. It is unlikely that you will find out anything about that structure on this -- or any -- forum.