IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

NATRJE : No job in the spool


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
silentarya

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Tue May 05, 2009 6:44 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue May 05, 2009 8:45 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue May 05, 2009 8:51 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue May 05, 2009 9:05 pm
Reply with quote

I've always used it with EOJ, so I can't tell you if it will fail without it... icon_biggrin.gif

O.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue May 05, 2009 9:08 pm
Reply with quote

Hi Robert,

Quote:
Dick: I hope you're referring to '/*EOF' --
Yup, my hand was quicker than my eye. . . icon_redface.gif

Good catch icon_smile.gif

d
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue May 05, 2009 9:10 pm
Reply with quote

/*EOF has saved me untold grief over the years ... I rely upon it!
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed May 06, 2009 12:11 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Search string in job at regular Spool... CLIST & REXX 0
No new posts Capturing logs from spool dd JCL & VSAM 6
No new posts No sysout coming in spool JCL & VSAM 4
No new posts SPOOL commands for INTRDR CICS 8
No new posts Reading mainframe job spool while the... JCL & VSAM 7
Search our Forums:

Back to Top