Skip to main content

Hi,

I have some challenges to get the Link Cards into Micro Focus Enterprise Developer for Eclipse.

LINKCARD

MODE AMODE(31),RMODE(ANY)
INCLUDE SYSLIB(PROGA) COBOL PROGRAM
INCLUDE LNKLIB(PROGB) COBOL PROGRAM
INCLUDE LNKLIB(PROGC) ASSEMBLER PROGRAM
INCLUDE LNKLIB(PROGD) COBOL PROGRAM
ENTRY PROGA
NAME LPROGA(R)

The above is the Link Card is used on Mainframe to statically link both Assembler and COBOL program object module.
The above Link card and creates a load module LPROGA.

We are using Micro Focus Enterprise Developer for Eclipse for development purpose. We are planning to use Micro Focus Assembler for Assembler compiles.

I was unable to  create the load module LPROGA. I made the following changes.

MODE AMODE(31),RMODE(ANY)
INCLUDE SYSLIB(PROGA),TYPE=CBL    COBOL PROGRAM
INCLUDE LNKLIB(PROGB),TYPE=CBL    COBOL PROGRAM
INCLUDE LNKLIB(PROGC),TYPE=ASM    ASSEMBLER PROGRAM
INCLUDE LNKLIB(PROGD),TYPE=CBL    COBOL PROGRAM
ENTRY PROGA
NAME LPROGA(R)

a. How do we point to the obj files in SYSLIB & LNKLIB.
b. There is an entry point "abcd" in PROGB cobol program. PROGA is calling "abcd", so that it should execute it in PROGB.

NOTE: a Program-ID with "abcd" exists outside, which has a different functionality.

we want to contain LPROGA, so that the entry point "abcd" is executed using PROGB.

Could you please let me know, how this can be achieved in Micro Focus Enterprise Developer for Eclipse.

Appreciate any help in this regard.


#EnterpriseSuite
#EnterpriseDeveloper
#EnterpriseTestServer

Hi,

I have some challenges to get the Link Cards into Micro Focus Enterprise Developer for Eclipse.

LINKCARD

MODE AMODE(31),RMODE(ANY)
INCLUDE SYSLIB(PROGA) COBOL PROGRAM
INCLUDE LNKLIB(PROGB) COBOL PROGRAM
INCLUDE LNKLIB(PROGC) ASSEMBLER PROGRAM
INCLUDE LNKLIB(PROGD) COBOL PROGRAM
ENTRY PROGA
NAME LPROGA(R)

The above is the Link Card is used on Mainframe to statically link both Assembler and COBOL program object module.
The above Link card and creates a load module LPROGA.

We are using Micro Focus Enterprise Developer for Eclipse for development purpose. We are planning to use Micro Focus Assembler for Assembler compiles.

I was unable to  create the load module LPROGA. I made the following changes.

MODE AMODE(31),RMODE(ANY)
INCLUDE SYSLIB(PROGA),TYPE=CBL    COBOL PROGRAM
INCLUDE LNKLIB(PROGB),TYPE=CBL    COBOL PROGRAM
INCLUDE LNKLIB(PROGC),TYPE=ASM    ASSEMBLER PROGRAM
INCLUDE LNKLIB(PROGD),TYPE=CBL    COBOL PROGRAM
ENTRY PROGA
NAME LPROGA(R)

a. How do we point to the obj files in SYSLIB & LNKLIB.
b. There is an entry point "abcd" in PROGB cobol program. PROGA is calling "abcd", so that it should execute it in PROGB.

NOTE: a Program-ID with "abcd" exists outside, which has a different functionality.

we want to contain LPROGA, so that the entry point "abcd" is executed using PROGB.

Could you please let me know, how this can be achieved in Micro Focus Enterprise Developer for Eclipse.

Appreciate any help in this regard.


#EnterpriseSuite
#EnterpriseDeveloper
#EnterpriseTestServer

Hi Ravishankar,

Is my understanding correct: you want to link assembler and COOL libraries/programs into one .dll file. Please confirm.

Have you considered using cbllink:
www.microfocus.com/.../HRCMRHCOML02.html
This is a commandline tool but once you understand how to do it there you could go to the Eclipse project and start setting the equivelant under the link options of the project.

Also is any error seen, e.g. at compile or runtime, can you share the full error text.

Regards,
Kim


Hi,

I have some challenges to get the Link Cards into Micro Focus Enterprise Developer for Eclipse.

LINKCARD

MODE AMODE(31),RMODE(ANY)
INCLUDE SYSLIB(PROGA) COBOL PROGRAM
INCLUDE LNKLIB(PROGB) COBOL PROGRAM
INCLUDE LNKLIB(PROGC) ASSEMBLER PROGRAM
INCLUDE LNKLIB(PROGD) COBOL PROGRAM
ENTRY PROGA
NAME LPROGA(R)

The above is the Link Card is used on Mainframe to statically link both Assembler and COBOL program object module.
The above Link card and creates a load module LPROGA.

We are using Micro Focus Enterprise Developer for Eclipse for development purpose. We are planning to use Micro Focus Assembler for Assembler compiles.

I was unable to  create the load module LPROGA. I made the following changes.

MODE AMODE(31),RMODE(ANY)
INCLUDE SYSLIB(PROGA),TYPE=CBL    COBOL PROGRAM
INCLUDE LNKLIB(PROGB),TYPE=CBL    COBOL PROGRAM
INCLUDE LNKLIB(PROGC),TYPE=ASM    ASSEMBLER PROGRAM
INCLUDE LNKLIB(PROGD),TYPE=CBL    COBOL PROGRAM
ENTRY PROGA
NAME LPROGA(R)

a. How do we point to the obj files in SYSLIB & LNKLIB.
b. There is an entry point "abcd" in PROGB cobol program. PROGA is calling "abcd", so that it should execute it in PROGB.

NOTE: a Program-ID with "abcd" exists outside, which has a different functionality.

we want to contain LPROGA, so that the entry point "abcd" is executed using PROGB.

Could you please let me know, how this can be achieved in Micro Focus Enterprise Developer for Eclipse.

Appreciate any help in this regard.


#EnterpriseSuite
#EnterpriseDeveloper
#EnterpriseTestServer

Hi Kim,

Thanks for pointing to the link.  

I figure it out in Micro Focus Enterprise Developer for Eclipse as follows:

// MODE AMODE(31),RMODE(ANY)
// INCLUDE SYSLIB(PROGA),TYPE=CBL    COBOL PROGRAM
// INCLUDE LNKLIB(PROGB),TYPE=CBL    COBOL PROGRAM
// INCLUDE LNKLIB(PROGC),TYPE=ASM    ASSEMBLER PROGRAM
// INCLUDE LNKLIB(PROGD),TYPE=CBL    COBOL PROGRAM
// ENTRY PROGA
// NAME LPROGA(R),TYPE=CBL

The load (LPROGA) got created created with above entry point defined in LPROGA.

the only thing, I need to figure out is how to pick the .OBJ files from different folders (SYSLIB, LNLLIB).  If you have any inputs of this, please let me know.

regards,

Ravi


Hi Kim,

Thanks for pointing to the link.  

I figure it out in Micro Focus Enterprise Developer for Eclipse as follows:

// MODE AMODE(31),RMODE(ANY)
// INCLUDE SYSLIB(PROGA),TYPE=CBL    COBOL PROGRAM
// INCLUDE LNKLIB(PROGB),TYPE=CBL    COBOL PROGRAM
// INCLUDE LNKLIB(PROGC),TYPE=ASM    ASSEMBLER PROGRAM
// INCLUDE LNKLIB(PROGD),TYPE=CBL    COBOL PROGRAM
// ENTRY PROGA
// NAME LPROGA(R),TYPE=CBL

The load (LPROGA) got created created with above entry point defined in LPROGA.

the only thing, I need to figure out is how to pick the .OBJ files from different folders (SYSLIB, LNLLIB).  If you have any inputs of this, please let me know.

regards,

Ravi

Hi, in the project properties do you see the following: 

Can you use that highlighted option "add external files" to include the libraries?


Hi, in the project properties do you see the following: 

Can you use that highlighted option "add external files" to include the libraries?

Hi Kim,

I see the above project properties  and also highlighted option "add external files".  But can you please explain a use case, when we need to add external files?

regards,

Ravi


Hi Kim,

Thanks for pointing to the link.  

I figure it out in Micro Focus Enterprise Developer for Eclipse as follows:

// MODE AMODE(31),RMODE(ANY)
// INCLUDE SYSLIB(PROGA),TYPE=CBL    COBOL PROGRAM
// INCLUDE LNKLIB(PROGB),TYPE=CBL    COBOL PROGRAM
// INCLUDE LNKLIB(PROGC),TYPE=ASM    ASSEMBLER PROGRAM
// INCLUDE LNKLIB(PROGD),TYPE=CBL    COBOL PROGRAM
// ENTRY PROGA
// NAME LPROGA(R),TYPE=CBL

The load (LPROGA) got created created with above entry point defined in LPROGA.

the only thing, I need to figure out is how to pick the .OBJ files from different folders (SYSLIB, LNLLIB).  If you have any inputs of this, please let me know.

regards,

Ravi

Hi Kim,

Also, checking how we can specify the specific object folder in the above example.  Will creating an Environment Variable such as LNKLIB and associate it to a folder - will this work?

Thanks,

Ravi


Hi,

I have some challenges to get the Link Cards into Micro Focus Enterprise Developer for Eclipse.

LINKCARD

MODE AMODE(31),RMODE(ANY)
INCLUDE SYSLIB(PROGA) COBOL PROGRAM
INCLUDE LNKLIB(PROGB) COBOL PROGRAM
INCLUDE LNKLIB(PROGC) ASSEMBLER PROGRAM
INCLUDE LNKLIB(PROGD) COBOL PROGRAM
ENTRY PROGA
NAME LPROGA(R)

The above is the Link Card is used on Mainframe to statically link both Assembler and COBOL program object module.
The above Link card and creates a load module LPROGA.

We are using Micro Focus Enterprise Developer for Eclipse for development purpose. We are planning to use Micro Focus Assembler for Assembler compiles.

I was unable to  create the load module LPROGA. I made the following changes.

MODE AMODE(31),RMODE(ANY)
INCLUDE SYSLIB(PROGA),TYPE=CBL    COBOL PROGRAM
INCLUDE LNKLIB(PROGB),TYPE=CBL    COBOL PROGRAM
INCLUDE LNKLIB(PROGC),TYPE=ASM    ASSEMBLER PROGRAM
INCLUDE LNKLIB(PROGD),TYPE=CBL    COBOL PROGRAM
ENTRY PROGA
NAME LPROGA(R)

a. How do we point to the obj files in SYSLIB & LNKLIB.
b. There is an entry point "abcd" in PROGB cobol program. PROGA is calling "abcd", so that it should execute it in PROGB.

NOTE: a Program-ID with "abcd" exists outside, which has a different functionality.

we want to contain LPROGA, so that the entry point "abcd" is executed using PROGB.

Could you please let me know, how this can be achieved in Micro Focus Enterprise Developer for Eclipse.

Appreciate any help in this regard.


#EnterpriseSuite
#EnterpriseDeveloper
#EnterpriseTestServer

When I link edit the above, I get an error message as follows - ASMLK0319S : IDF name init error - no output:

FileCompile.New_Configuration.LPROGA.lin:
[asm]
[asm] Compiling LPROGA.lin...
[asm] "C:\\Program Files (x86)\\Micro Focus\\Enterprise Developer\\bin\\RUN.EXE"
[asm] MF370LNK
[asm] "C:\\lnk_prj\\LPROGA.lin"
[asm] ANIM
[asm] RENT
[asm] AMODE(31)
[asm] RMODE(31)
[asm] LIST
[asm] REUS
[asm] OMF(390)
[asm] CALL
[asm]
[asm] MF370LNK Micro Focus Assembler Linkage Editor
[asm] (C) Copyright 2021 Micro Focus or one of its affiliates. Vrn 4.0.00
[asm] ASMLK0319S : IDF name init error - no output
[asm] // ENTRY PROGA
[asm] // NAME LPROGA
[asm] Link Info. : Options = REPLACE OMF(390) ANIMATE LIST RENT REUS CALL NONCAN
[asm] Link Info. : Linking = LPROGA.OBJ
[asm] // MODE AMODE(31),RMODE(ANY)
[asm] Linker command in error -// MODE AMODE(31),RMODE(ANY)
[asm] 0001 // INCLUDE LNKLIB(PROGA),TYPE=CBL,ANIMATE
[asm] 0002 // INCLUDE LNKLIB(PROGB),TYPE=CBL,ANIMATE
[asm] SYMBOL VALUE LENGTH TYPE DEFINED REFERENCED
[asm] ENT/LNG 00000000 00000030
[asm] Link Info. RC=0 link completed with no errors
[asm] Link Info. : SYSLMOD = .\\LPROGA.390
[asm] Assembler Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 0

Where can I find the Error reference.  and what changes I need to make to compile without errors.  I am using Micro Focus Enterprise Developer for Eclipse.

Any help?

regards,

Ravi


Hi Kim,

I see the above project properties  and also highlighted option "add external files".  But can you please explain a use case, when we need to add external files?

regards,

Ravi

I believe add external files allows you to includes files outside of the project area.


Hi Kim,

Also, checking how we can specify the specific object folder in the above example.  Will creating an Environment Variable such as LNKLIB and associate it to a folder - will this work?

Thanks,

Ravi

I suggest you test it, e.g. if using add external files does not help.


When I link edit the above, I get an error message as follows - ASMLK0319S : IDF name init error - no output:

FileCompile.New_Configuration.LPROGA.lin:
[asm]
[asm] Compiling LPROGA.lin...
[asm] "C:\\Program Files (x86)\\Micro Focus\\Enterprise Developer\\bin\\RUN.EXE"
[asm] MF370LNK
[asm] "C:\\lnk_prj\\LPROGA.lin"
[asm] ANIM
[asm] RENT
[asm] AMODE(31)
[asm] RMODE(31)
[asm] LIST
[asm] REUS
[asm] OMF(390)
[asm] CALL
[asm]
[asm] MF370LNK Micro Focus Assembler Linkage Editor
[asm] (C) Copyright 2021 Micro Focus or one of its affiliates. Vrn 4.0.00
[asm] ASMLK0319S : IDF name init error - no output
[asm] // ENTRY PROGA
[asm] // NAME LPROGA
[asm] Link Info. : Options = REPLACE OMF(390) ANIMATE LIST RENT REUS CALL NONCAN
[asm] Link Info. : Linking = LPROGA.OBJ
[asm] // MODE AMODE(31),RMODE(ANY)
[asm] Linker command in error -// MODE AMODE(31),RMODE(ANY)
[asm] 0001 // INCLUDE LNKLIB(PROGA),TYPE=CBL,ANIMATE
[asm] 0002 // INCLUDE LNKLIB(PROGB),TYPE=CBL,ANIMATE
[asm] SYMBOL VALUE LENGTH TYPE DEFINED REFERENCED
[asm] ENT/LNG 00000000 00000030
[asm] Link Info. RC=0 link completed with no errors
[asm] Link Info. : SYSLMOD = .\\LPROGA.390
[asm] Assembler Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 0

Where can I find the Error reference.  and what changes I need to make to compile without errors.  I am using Micro Focus Enterprise Developer for Eclipse.

Any help?

regards,

Ravi

I do not yet find any reference in docus to ASMLK0319S. I do find this article which seems related (old product but relevant due to error):
https://community.rocketsoftware.com/discussion/assembler-linkage-problem#bmce5caa6f-7984-4b31-81e1-c26a7925c73d

Does the resolution from the above article help?

If the issues persist I recommend you to consider raising a support case to seek further help, when doing so please consider to include a test case project that can be used to recreate the error, that can help speed up the investigation.