View previous topic :: View next topic
|
Author |
Message |
silentarya
New User
Joined: 11 Mar 2007 Posts: 35 Location: Chennai
|
|
|
|
Hi,
I am trying to submit a job from within my natural program with the Hex return code from the NATRJE its telling that job submitted successfully. However, I am not abl to get any job in the spool... Can anybody suggest what is wrong in the code?
The codes are as follows...
[Code]
DEFINE DATA
LOCAL
01 #CARD
02 #CARD1 (A80)
02 #CARD2 (A80)
02 #CARD3 (A80)
02 #CARD4 (A80)
01 #COUNT (B4)
01 #FLAG3 (A1)
01 #RETHEX (B2)
END-DEFINE
MOVE '//BRAHMADB JOB (ABCD,EFGH),CLASS=F,TESTING,' TO #CARD1
*
MOVE '// MSGCLASS=X,MSGLEVEL=(1,1)' TO #CARD2
*
MOVE 5 TO #COUNT
MOVE 'L' TO #FLAG3
*
MOVE '//STEP020 EXEC NATURAL,PROGRAM=TMPDISP,APPLID=MYLIB' -
'//CMPRINT DD SYSOUT=* ' TO #CARD3
MOVE '//SYSOUT DD SYSOUT=*' TO #CARD4
CALL 'NATRJE' #CARD #COUNT #FLAG3 #RETHEX
IF #RETHEX = H'0000'
WRITE 'JOB SUBMITTED SUCCESSFULLY'
ELSE
WRITE 'ERROR FROM NATRJE' #RETHEX
END-IF
END
[Code Ends] |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I don't know if this applies to Natural, but some systems i've worked with needed a "/*EOF" * statement after the "//" at the end of the submitted job.
Syntax corrected
The way this was explained was that this was needed so that the internal reader would be closed and the job actually released to the queue. Keep in mind this was several years ago and not Adabas/Natural.
Still, it might be worth a try. . . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Dick: I hope you're referring to '/*EOF' -- I haven't heard of /*EOJ before. The /*EOF is still required for immediate processing of a job submitted through the internal reader. IIRC, if not present, the job will not go to JES until (1) the buffer is filled, (2) a new JOB card is entered into the internal reader, or (3) the address space goes away (i.e., the person signs off). |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I've always used it with EOJ, so I can't tell you if it will fail without it...
O. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Robert,
Quote: |
Dick: I hope you're referring to '/*EOF' -- |
Yup, my hand was quicker than my eye. . .
Good catch
d |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
/*EOF has saved me untold grief over the years ... I rely upon it! |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Have you searched the SYSLOG for BRAHMADB jobname? You may find a JCL ERROR on output queue.
The problem may be the JOB card. The CLASS= parameter must be AFTER the positional parameter PGMMRNAME which you have as 'TESTING'. Ensure a good jobstream by submitting manually. |
|
Back to top |
|
|
|