Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Copybook include files not fixed #171

@richardm90

Description

@richardm90

When I tried the Migrate Source option it fixes the /copy and /include statements in program and module source files but it doesn't do the same in copybook files - those files with an rpgleinc extension.

I was looking at the cli/src/targets/language/rpgle.ts logic and it seems trivial to add the rpgleinc extension to the rpgleExtensions array but it doesn't seem right to add this to the rpgleObjects array - there won't be an object for a copybook.

Image

In the cli/src/targets/index.ts logic it executes the Targets.LanguageProvider.handleLanguage() function passing in the resolved object and I was considering modifying this function to allow a null in the object passed in - for copybooks.

Image

I'm really asking for some guidance here on how best to fix the /copy and /include statements in copybooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions