+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: command environment calls

  1. #1
    Guest.Visitor Guest

    Default command environment calls

    I'm not quite sure just what the situation is. Could you post some code? What is the length of Time between Failure -- minutes, hours or what? Bobh

  2. #2
    Guest.Visitor Guest

    Default command environment calls

    It's not a matter of time it's a certain number of iterations. I haven't counted them exactly but I can run the functions and when the STDOUT file gets to a certain number of pages the error occurs. The number of pages depends on the trace and number of say staements we have in it to gather information. For a short term fix I am counting these iterations and "restarting" the function when it gets to 501. This avoids whatever is occuring. The REXX code calls RPG prgrams and 2 API's, QSNDDTAQ and QRCVDTAQ, the error manifests itself in errors when these are called, it can't find the Q's one time and a program the next. It seems at the moment that the string passed to the Command environment is bad or the command environment has a problem.

  3. #3
    Guest.Visitor Guest

    Default command environment calls

    If you are dealing in REXX get a copy of REXXTRY running and type in say address() On the 400 this should return COMMAND If not, there is some other problem. bobh

  4. #4
    Guest.Visitor Guest

    Default command environment calls

    I have already checked that using a say address throughout the code and it returns COMMAND with iteration right up to the failure. Thanks

  5. #5
    Guest.Visitor Guest

    Default command environment calls

    could you post some of the code involved? bobh

  6. #6
    Guest.Visitor Guest

    Default command environment calls

    I have to run some more tests using less complex code to isolate the problem. I will post the code at that time provided I ever get the chance to do it. In the meantime I have averted the issue by counting iterations and restarting the program at 500. thanks for your interest

  7. #7
    Guest.Visitor Guest

    Default command environment calls

    Does the REXX program ever hit an EXIT command. bobh

  8. #8
    Guest.Visitor Guest

    Default command environment calls

    yes in 2 conditional cases, there is a QRCVDTAQ that the program issues waiting for 15 minutes. If the 15 minutes passes without any entries being placed on the dtaq it will exit, this is done to close open files. After exiting the Rexx program is started again and waits for an entry on the same dtaq.The second case where it exits is from a Syntax error routine.

  9. #9
    Guest.Visitor Guest

    Default command environment calls

    Does the REXX program have the statement: EXIT; in it. A rexx module has to end with either an EXIT or RETURN statement, else it gets tangled up bobh.

  10. #10
    Guest.Visitor Guest

    Default command environment calls

    In both cases described an EXIT statement is used.What do you mean by "tangled" , can you provide any details ?Thanks

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. QCMDEXC calls and functions for
    By Guest.Visitor in forum RPG
    Replies: 1
    Last Post: 01-29-2003, 11:30 AM
  2. QCMDEXC calls and functions for
    By Guest.Visitor in forum RPG
    Replies: 1
    Last Post: 01-25-2003, 10:25 AM
  3. rpg program calls
    By Guest.Visitor in forum Programming
    Replies: 6
    Last Post: 06-15-2001, 05:53 PM
  4. Replies: 1
    Last Post: 04-09-2001, 09:53 AM
  5. How do I get the PGM name of the PGM that calls the trigger?
    By S.Mildenberger in forum Programming
    Replies: 2
    Last Post: 04-06-2001, 01:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts