View previous topic :: View next topic
|
Author |
Message |
Arun bv
New User
Joined: 29 Dec 2010 Posts: 41 Location: Mumbai
|
|
|
|
I HAVE SIGNED VARIABLE OF NAME SW-ID PIC S9(9) USAGE COMP ,
PGM A POPULATES THE COPYBK WHICH HAS THAT ABOVE VARIABLE(SUPPOSE IM POPULATING +123456789 IN PGMA) AND LINKS THAT CPYBK TO PGM B,
IN PGMB, THE SW-ID(VALUE POPULATED WAS -256897445) IS NOT GETTING THE VALUE PASSED IN PGMA,
HOW TO RESOLVE THIS? |
|
Back to top |
|
|
Stefan
Active User
Joined: 12 Jan 2006 Posts: 110 Location: Germany
|
|
|
|
You should show the relevant code sections of both programs to give us a chance to help.
I would EXEC CICS LINK to the second program and pass a common area containing your copybook. All fields have to be filled properly before. When CICS invokes your second program, this module has to have a linkage section with a common area defined analogically. In addition the second program must use the USING clause on the PROCEDURE DIVISION declaring the copybook you have defined within your linkage section. A good practice is to check first the length of the common area before you process the data.
If you have done all this, I can't see any reason why it should not work properly. |
|
Back to top |
|
|
|