PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05/25/2016 9:04 PM by  Jason Beard
New custom program
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Greg Moeller
Private
Private
Veteran Member
(3873 points)
Veteran Member
Posts:1377


Send Message:

--
05/05/2016 10:22 AM

    I have developed a custom program that just calls a shell script....

    When I try to add the job with the custom form in it, I get an error that says "The value {1} is invalid for the parameter _TKN"

    Any clues what is happening here?

    Greg Moeller
    Private
    Private
    Veteran Member
    (3873 points)
    Veteran Member
    Posts:1377


    Send Message:

    --
    05/05/2016 11:12 AM

    I think I solved my own issue. "Clear IOS Cache" and it now lets me add the job.

    Found KB 1191499 that deals with this issue.

    Vijay S
    Lawson Developer
    Independent consultant
    Veteran Member
    (389 points)
    Veteran Member
    Posts:167


    Send Message:

    --
    05/11/2016 10:43 PM
    Greg, can we pass the status of successful run of the shell script back to the custom program. I too have called shell scripts couple of times but wasn' t able to check the status of the shell script back in the program. I wasn't able to get the status in the variable which they give with call system command. Thank you!

    Jason Beard
    Private
    Private
    Veteran Member
    (219 points)
    Veteran Member
    Posts:79


    Send Message:

    --
    05/25/2016 9:04 PM
    vJs -

    Yes, you can get a return from the script using the following syntax
    CALL "system" USING WS-COMMAND GIVING WS-RETURN-COMMAND.
    Where
    02 WS-COMMAND.
    03 WS-COMMAND-STRING PIC X(700).
    03 FILLER PIC X(01) VALUE X"00".
    02 WS-RETURN-COMMAND PIC 9(08)
    COMP VALUE ZEROES.
    Jason Beard
    617-548-5568
    jabeard3@gmail.com
    You are not authorized to post a reply.