New custom program

Sort:
You are not authorized to post a reply.
Author
Messages
Greg Moeller
Veteran Member
Posts: 1498
Veteran Member

    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
    Veteran Member
    Posts: 1498
    Veteran Member

      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
      Veteran Member
      Posts: 174
      Veteran Member
        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
        Veteran Member
        Posts: 124
        Veteran Member
          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.