Skip to main content

[Migrated content. Thread originally posted on 10 January 2003]

I'm trying to understand if I can assign the Chaining verb to my program.

I am trying to have Program A chain to Program B using X,Y,Z.

i.e.

Chain Program B using X,Y,Z

I can see that by assiging a linkage set of parameters via Workbench the generate produces a .cbl/.lst file with the appropriate linkage section/using statements.

How can, if at all, the CHAINING satement be assigned wihin the receiving source, as there appears to be no option similar to the linkage one for automatic generation.

TIA

[Migrated content. Thread originally posted on 10 January 2003]

I'm trying to understand if I can assign the Chaining verb to my program.

I am trying to have Program A chain to Program B using X,Y,Z.

i.e.

Chain Program B using X,Y,Z

I can see that by assiging a linkage set of parameters via Workbench the generate produces a .cbl/.lst file with the appropriate linkage section/using statements.

How can, if at all, the CHAINING satement be assigned wihin the receiving source, as there appears to be no option similar to the linkage one for automatic generation.

TIA
FYI

After experimenting I have decided that for the time being the only way to achieve my chaining option through Workbench is to 'generate my source and then modify the .cbl file and ad the chainng syntax to the procedure division statement (I already need to make other mods to the .cbl for SQL inclusions/calls). It seems to work fine in this respect.

BUT....

As an additional query though, is that I have noticed that if Program A, with a Screen Title of say 'ScreenA' chains to Program B which has been set up with a screen of Screen Title 'ScreenB' the new title is not dsplayed this could be confusing if not dangerous if Screen A was, for example, titled 'Doing Enquiry' whilst Program B performed deletes. I have tried modifying the handle title but this makes no difference.

Does anyone have any advice.

TIA

[Migrated content. Thread originally posted on 10 January 2003]

I'm trying to understand if I can assign the Chaining verb to my program.

I am trying to have Program A chain to Program B using X,Y,Z.

i.e.

Chain Program B using X,Y,Z

I can see that by assiging a linkage set of parameters via Workbench the generate produces a .cbl/.lst file with the appropriate linkage section/using statements.

How can, if at all, the CHAINING satement be assigned wihin the receiving source, as there appears to be no option similar to the linkage one for automatic generation.

TIA
FYI

After experimenting I have decided that for the time being the only way to achieve my chaining option through Workbench is to 'generate my source and then modify the .cbl file and ad the chainng syntax to the procedure division statement (I already need to make other mods to the .cbl for SQL inclusions/calls). It seems to work fine in this respect.

BUT....

As an additional query though, is that I have noticed that if Program A, with a Screen Title of say 'ScreenA' chains to Program B which has been set up with a screen of Screen Title 'ScreenB' the new title is not dsplayed this could be confusing if not dangerous if Screen A was, for example, titled 'Doing Enquiry' whilst Program B performed deletes. I have tried modifying the handle title but this makes no difference.

Does anyone have any advice.

TIA