+ Reply to Thread
Results 1 to 7 of 7

Thread: ENDJOB with QCMDEXC

  1. #1
    K.Forsythe Guest

    Default ENDJOB with QCMDEXC

    Qcmd = 'ENDJOB Job(' + %trim(&Jobname2) + '/' + %trim(&Jobuser2) + '/' + %trim(&Jobnum2) + ')'; Callp(e) RunQcmd(Qcmd:%Len(Qcmd));

  2. #2
    EDIguru Guest

    Default ENDJOB with QCMDEXC

    Probably. Thanks.

  3. #3
    EDIguru Guest

    Default ENDJOB with QCMDEXC

    I just ran across something interesting--after it drove me nuts for a bit.....when you send parameters to the ENDJOB cmd in the order JOB(JOBNAME/USER/JOBNUMBER), the command transposes the position of the jobname and jobuser. I had to send them in the order JOB(JOBNUMBER/USER/JOBNAME).

  4. #4
    Guest.Visitor Guest

    Default ENDJOB with QCMDEXC

    NUMBER/USER/JOBNAME is the correct format. Chris

  5. #5

    Default ENDJOB with QCMDEXC

    EDIguru wrote: > > I just ran across something interesting--after it drove me nuts for a bit.....when you send parameters to the ENDJOB cmd in the order JOB(JOBNAME/USER/JOBNUMBER), the command transposes the position of the jobname and jobuser. I had to send them in the order JOB(JOBNUMBER/USER/JOBNAME). It's works the same for any command that uses a slash to separate the parts of the parameter. For example, if you prompt on the CALL command, you put the program first and then the library below. Program . . . . . . . . . . . . mypgm Library . . . . . . . . . . . mylib But when you use it on the command line, you put them in reverse order, library first: ===> call mylib/mypgm If you're not sure how to code a command as a string, prompt it and fill in some values, then hit F14. It will show you what the command string looks like. Job name . . . . . . . . . . . . > JOBNAME User . . . . . . . . . . . . . > USER Number . . . . . . . . . . . . > 123456 F14 shows: ENDJOB JOB(123456/JOB/JOBNAME)

  6. #6
    EDIguru Guest

    Default ENDJOB with QCMDEXC

    I am trying to execute an end job command from RPG with QCMDEXC. The command is erring out and I'm getting a message that the variable names are not allowed. In debug mode the job name, user, and number all have values. Does anyone know how I can do this?
    Code

  7. #7
    EDIguru Guest

    Default ENDJOB with QCMDEXC

    I never really noticed that before.

+ Reply to Thread

Similar Threads

  1. Issuing an EndJob for a Prestart Job
    By Guest.Visitor in forum CL
    Replies: 1
    Last Post: 03-22-2007, 05:01 AM
  2. Help on QCMDEXC
    By mamadou_toure@yahoo.com in forum RPG
    Replies: 3
    Last Post: 09-21-2005, 10:08 AM
  3. endjob *immed
    By David Abramowitz in forum System Administration
    Replies: 7
    Last Post: 05-08-2001, 09:59 AM
  4. Detecting ENDJOB
    By Guest.Visitor in forum Programming
    Replies: 11
    Last Post: 04-28-2000, 04:54 PM
  5. ENDJOB ???
    By Guest.Visitor in forum Application Software
    Replies: 5
    Last Post: 10-14-1999, 05:10 AM

Posting Permissions

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