Skip to main content

[archive] Linkage AcuCobol-Java

  • April 2, 2010
  • 4 replies
  • 0 views

[Migrated content. Thread originally posted on 02 April 2010]

Hello ,

I have been struggling with getting the Java-Cobol Interoperability to sucessfully work , the issue seems to be the linkage . Below is how the linkage looks

01 LINK-FIELDS.
05 LINK-MEMBER-ID.
10 LINK-SUB-ID PIC X(12).
10 LINK-MEM-SUF PIC X(02).
05 LINK-NAME.
10 LINK-LAST-NAME PIC X(20).
10 LINK-FIRST-MI.
15 LINK-FIRST-NAME PIC X(13).
05 LINK-ZIP PIC 9(09) COMP.
05 LINK-AREA-CODE PIC 9(03) COMP.
05 LINK-TELEPHONE PIC 9(07) COMP.

1. Does any one know what the linkage-signature shoudl look like in this case ?

2. Does AcuCobol-Java support multiple levels in the linkage ?

Thanks ...

4 replies

[Migrated content. Thread originally posted on 02 April 2010]

Hello ,

I have been struggling with getting the Java-Cobol Interoperability to sucessfully work , the issue seems to be the linkage . Below is how the linkage looks

01 LINK-FIELDS.
05 LINK-MEMBER-ID.
10 LINK-SUB-ID PIC X(12).
10 LINK-MEM-SUF PIC X(02).
05 LINK-NAME.
10 LINK-LAST-NAME PIC X(20).
10 LINK-FIRST-MI.
15 LINK-FIRST-NAME PIC X(13).
05 LINK-ZIP PIC 9(09) COMP.
05 LINK-AREA-CODE PIC 9(03) COMP.
05 LINK-TELEPHONE PIC 9(07) COMP.

1. Does any one know what the linkage-signature shoudl look like in this case ?

2. Does AcuCobol-Java support multiple levels in the linkage ?

Thanks ...
Hello Rahul,

I believe the linkage signature will be "X12X2X20X13III". Although I haven't tested it.

Section 2.4 of the Guide to Interperating has details about Java Data types.

Note that in the USAGE clause documentation (sec 5.7.1.8 in the Ref Manual) we see that COMP is the same as COMP-4 with ACUCOBOL-GT.

[Migrated content. Thread originally posted on 02 April 2010]

Hello ,

I have been struggling with getting the Java-Cobol Interoperability to sucessfully work , the issue seems to be the linkage . Below is how the linkage looks

01 LINK-FIELDS.
05 LINK-MEMBER-ID.
10 LINK-SUB-ID PIC X(12).
10 LINK-MEM-SUF PIC X(02).
05 LINK-NAME.
10 LINK-LAST-NAME PIC X(20).
10 LINK-FIRST-MI.
15 LINK-FIRST-NAME PIC X(13).
05 LINK-ZIP PIC 9(09) COMP.
05 LINK-AREA-CODE PIC 9(03) COMP.
05 LINK-TELEPHONE PIC 9(07) COMP.

1. Does any one know what the linkage-signature shoudl look like in this case ?

2. Does AcuCobol-Java support multiple levels in the linkage ?

Thanks ...
Hello Rahul,

I believe the linkage signature will be "X12X2X20X13III". Although I haven't tested it.

Section 2.4 of the Guide to Interperating has details about Java Data types.

Note that in the USAGE clause documentation (sec 5.7.1.8 in the Ref Manual) we see that COMP is the same as COMP-4 with ACUCOBOL-GT.

[Migrated content. Thread originally posted on 02 April 2010]

Hello ,

I have been struggling with getting the Java-Cobol Interoperability to sucessfully work , the issue seems to be the linkage . Below is how the linkage looks

01 LINK-FIELDS.
05 LINK-MEMBER-ID.
10 LINK-SUB-ID PIC X(12).
10 LINK-MEM-SUF PIC X(02).
05 LINK-NAME.
10 LINK-LAST-NAME PIC X(20).
10 LINK-FIRST-MI.
15 LINK-FIRST-NAME PIC X(13).
05 LINK-ZIP PIC 9(09) COMP.
05 LINK-AREA-CODE PIC 9(03) COMP.
05 LINK-TELEPHONE PIC 9(07) COMP.

1. Does any one know what the linkage-signature shoudl look like in this case ?

2. Does AcuCobol-Java support multiple levels in the linkage ?

Thanks ...
Hello Rahul,

I believe the linkage signature will be "X12X2X20X13III". Although I haven't tested it.

Section 2.4 of the Guide to Interperating has details about Java Data types.

Note that in the USAGE clause documentation (sec 5.7.1.8 in the Ref Manual) we see that COMP is the same as COMP-4 with ACUCOBOL-GT.

[Migrated content. Thread originally posted on 02 April 2010]

Hello ,

I have been struggling with getting the Java-Cobol Interoperability to sucessfully work , the issue seems to be the linkage . Below is how the linkage looks

01 LINK-FIELDS.
05 LINK-MEMBER-ID.
10 LINK-SUB-ID PIC X(12).
10 LINK-MEM-SUF PIC X(02).
05 LINK-NAME.
10 LINK-LAST-NAME PIC X(20).
10 LINK-FIRST-MI.
15 LINK-FIRST-NAME PIC X(13).
05 LINK-ZIP PIC 9(09) COMP.
05 LINK-AREA-CODE PIC 9(03) COMP.
05 LINK-TELEPHONE PIC 9(07) COMP.

1. Does any one know what the linkage-signature shoudl look like in this case ?

2. Does AcuCobol-Java support multiple levels in the linkage ?

Thanks ...
Hi,

Why would anyone use comp fields to represent zip, area and phone number in the year 2010. We are in the GHz era and there is no need to send anything but strings.

I would have made the linkage item a PIC X(200) or some other suitable length.

If you still want to treat some fields as numbers I suggest you convert them to that in the Java program.

regards,
Hans