[COBOL]compile

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 259
Joined: Tue Feb 19, 2013 1:18 am

[COBOL]compile

Post by MegumiSawada » Wed Jun 07, 2017 4:35 am

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

tsupartono
Posts: 289
Joined: Tue Apr 17, 2012 7:21 pm

Re: [COBOL]compile

Post by tsupartono » Wed Jun 07, 2017 4:35 pm

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.

MegumiSawada
Posts: 259
Joined: Tue Feb 19, 2013 1:18 am

Re: [COBOL]compile

Post by MegumiSawada » Wed Jun 07, 2017 9:51 pm

Hi Tony,

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

Best Regards,
Megumi

Post Reply