New custom program

 3 Replies
 1 Subscribed to this topic
 18 Subscribed to this forum
Sort:
Author
Messages
Greg Moeller
Veteran Member
Posts: 1498
Veteran Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!

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
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!

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
New Poster
New Poster
Congrats on posting!
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: 125
Veteran Member
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
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