ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Cobol / Service Programs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cobol / Service Programs

    I have been asked to update a cobol program (Iseries V5R4) to call a procedure from an RPG service program. The problem I have is that the names of the procedures in the Service Program are approximately 17 characters long. (Name of program, underscore, procedure name). I cannot get the cobol call statement to process a procedure over 10 characters long. I keep getting a 'LNC0048' error. (Truncated to 10 characters) Is there any way of getting around this error other than writting another program/procedure with smaller name?

    Thanks for any help!!!
    Last edited by Haroldb; January 29, 2008, 08:12 AM.

  • #2
    Re: Cobol / Service Programs

    What I should do.

    PHP Code:
    SPECIAL-NAMES.                                 
      
    LINKAGE TYPE IS PROCEDURE FOR "LONGPROCEDURENAME"

             
    CALL "LONGPROCEDURENAME"   USING ... 
    Philippe

    Comment


    • #3
      Re: Cobol / Service Programs

      I have already tried your suggestion and cannot get it to work. I have received a reply from someone else that I need to use the NOMONOPRC key word, and this does work.

      Comment


      • #4
        Re: Cobol / Service Programs

        True ! Using Process NOMONOPRC is a matter of lower/upper cases in the procedure name.
        Philippe

        Comment

        Working...
        X