I have created two modules. One with the CRTCBLMOD. This is *MODULE type named TESTCBLLE. The other one, using the CRTCMOD, I created *MODULE type named TESTCILE. Then I used the CRTPGM to create the single program TESTING with the *PGM type and the attribute *CBLLE. When I did the CRTPGM command, the first entry was the CBL module and the second was the C module. I then created a regulard OPM COBOL program called COBOLOPM. This simply has a call to the SANDBOX *PGM. This works great, no problem. Here is the part that is not working. I want to pass a parm from the COBOLOPM as WS-FLAG. This is simply a test to pass a parm from the COBOLOPM *PGM to the TESTCBLLE *MODULE. I do not know how to do this. Obviously only *PGM's can be called. But if I call the ILE *PGM TESTING (which contains my COBOL ILE module and my C module), how will it know I am passing a parm to just the COBOL module. All I wanted to do was put in the linkage section, the WS-FLAG1 and move a 'Y' to it. Then i had a display back in my COBOLPGM, after my call, to display the flag. This was just a test to pass the parm. Can I call the COBOL module?
October 7, 2010 3:27 PM
October 14, 2010 3:15 PM