Ok, I think I can move new one to other folder.
Please but I have problems with new run unit call. I must pass parameters via CBL_ALLOC_MEM, CBL_PUT_SHMEM_PTR and CBL_GET_SHMEM_PTR
In caller program I have this:
01 ptr1 pointer.
01 ptr2 pointer.
01 ptr3 pointer.
01 mem-size pic x(4) comp-5.
01 mem-flags pic x(4) comp-5.
.......
move 1 to mem-flags
move 10879 to mem-size
call "CBL_ALLOC_MEM" using ptr1
by value mem-size mem-flags
move 1019 to mem-size
call "CBL_ALLOC_MEM" using ptr2
by value mem-size mem-flags
move 471604 to mem-size
call "CBL_ALLOC_MEM" using ptr3
by value mem-size mem-flags
set address of link-record to ptr1
set address of l-param to ptr2
set address of ws-messages to ptr3
But for last 2 lines I have this error:
COBCH0618S Data item is not declared in LINKAGE SECTION
But l-param and ws-messages I want only pass to next program, not return it. How to set this correctly?
Thanks.