Page 1 of 1

[COBOL]compile

Posted: Wed Jun 07, 2017 7:35 pm
by MegumiSawada
Hi,

Our customer uses COBOL to develop LongRange app.
Normally member type is CBLLE, so CRTBNDCBL command can be used with BNDDIR and ACTGRP option.
However, for some of the programs the customer would like to use SQL in COBOL so type will be SQLCBLLE and CRTSQLCBLI should be used for compile it.
CRTSQLCBLI doesn't have BNDDIR and ACTGRP option.
How can I compile these SQLCBLLE type programs for LongRange?

Best Regards,
Megumi Sawada

Re: [COBOL]compile

Posted: Thu Jun 08, 2017 7:35 am
by tsupartono
Hi Megumi,
The CRTSQLCBLI command should have a Compile type parameter.
You can change that to *MODULE to create a module instead of a program (*PGM).
Then you use the CRTPGM command to create the final program from the module - you can specify the binding directory when calling CRTPGM.

Re: [COBOL]compile

Posted: Thu Jun 08, 2017 12:51 pm
by MegumiSawada
Hi Tony,

Thank you!!!
I have confirmed that I can compile it with CRTSQLCBLI + CRTPGM commands and LongRange works fine.

Best Regards,
Megumi