PDA

View Full Version : Chaining and Workbench development of prog


axc
01-10-2003, 05:04 AM
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

axc
01-11-2003, 04:18 AM
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