Topic
1 reply Latest Post - ‏2012-10-07T09:40:31Z by SystemAdmin
Tomo_Brejar
Tomo_Brejar
34 Posts
ACCEPTED ANSWER

Pinned topic EGL calling java on CICS - getters and setters for commarea

‏2012-10-05T12:19:35Z |
Hello,
I have java program that runs on CICS (CICS IIOP). I’m calling that program from EGL (CICSLINK, COMMDATA) and everything works fine.

My program with small comeria:
public static void main(CommAreaHolder CAH) {
                
        String str = new String(CAH.value);
        System.out.println("Data from EGL: " + str);
                                                
        str = str + "Data from java";
        CAH.value = str.getBytes();                     
}


If commarea had more variables it wouldn’t be so easy to handle all variables.
I’m dealing with bytes on java side, and I’m wondering if there is some easy way to make getters and setters for commarea in java program?
What is the best practice for get/set variables from commarea?

Thanks,
Tomo
Updated on 2014-03-25T04:39:26Z at 2014-03-25T04:39:26Z by iron-man
  • SystemAdmin
    SystemAdmin
    6195 Posts
    ACCEPTED ANSWER

    Re: EGL calling java on CICS - getters and setters for commarea

    ‏2012-10-07T09:40:31Z  in response to Tomo_Brejar
    Tomo,

    as far as I know, RAD has a tooling for making getters and setters from Cobol record (commarea). So, I think you should first generate yor EGL program to Cobol and then use RAD tools to make Java getters and setters (from extracted Cobol commarea).

    Regards,
    Robert