View previous topic :: View next topic
|
Author |
Message |
sunnyk
New User
Joined: 20 Oct 2004 Posts: 59
|
|
|
|
Hi all,
I have the following requirement :
- I have an input COMMAREA of say 32K used by more than pgm
- At present, the program inspects it for some values and moves this commarea to working storage variable (declared as 32K)
Now, i don't want to declare the WS variable of 32K in pgm and depending on what length is passed i want to declare my variable.
Also each pgm uses specefic length of Commarea i.e.
Pgm1 uses say only first 1000 bytes of Commarea
Pgm2 uses say only first 1750 bytes of Commarea
and so on......
But i don't want to calculate the length of bytes for each pgm before COMMAREA move.
Rather than that i want to use only that data length which is being passed from COMMAREA as this 'll save CPU time by not dng INSPECT till end of 32K bytes.
Say COMMAREA passed only 100 bytes to pgm A(WS declared as 5k), now my pgm should not inspect all the 32K bytes.
Can anyone help me on this. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
I think, you could test the length of the receiving ComArea.
I allways do that in my Asm-Cics-Pgms.
CLC EIBCALEN,=H'0' Test COMMAREA zero
BE ZZ10 Yes, no XCTL/LINK from another Pgm
Regard's UmeySan |
|
Back to top |
|
|
|