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

Release a HELD job using JES command in batch.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Mon May 16, 2011 4:29 pm
Reply with quote

Is the job name unique ? if not instead of releasing the job name release the job number eg $aj1234. If the jobname is not unique jes will not release the job
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Mon May 16, 2011 4:37 pm
Reply with quote

Quote:
Is the job name unique ?

Yes the job name is unique,only one such job with that particular jobname exists on entire spool.
I had this problem of duplicate jobnames when I was trying the release job command in foreground mode(via ISPF-->SDSF). So made sure that it did not occur in batch.

Regards,
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue May 17, 2011 1:44 pm
Reply with quote

I ran some tests on a z/OS 1.11 and z/OS 1.12 system. If I disable the ability to issue commands in jes the batch job runs correctly but I get no IEFC165I message. If I enable the ability to issue commands in Jes but remove my RACF authorisation btach job runs ok I get message IEFC165I followed by the command I wish to execute and then a RACF error message. If I then give myself the correct Racf authorisation , I get message IEFC165I followed by the command I wish to execute and the batch job works correctly. According to the manuals if you receive IEFC165I followed by the command unless there is a request for a reply from the operator the command will be executed.
As you are seeing
[quote]05.47.11 JOB05016 IEFC165I // $AJ(JOBNAME) 630
05.47.11 JOB05016 $AJ(JOBNAME)
Quote:
I assume the command is being passed to the system for execution.
After this are you seeing any HASP messages before you see the $HASP373 job started message. Lastly I assume you are looking in the actual SYSLOG dataset for the messages and not just in the joblog, as the SYSLOG will contain all messages (unless your site is using filtering to reduce the message volume) not just a subset of the messages
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue May 17, 2011 2:24 pm
Reply with quote

sorry for the incorrect formatting of the previous post
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue May 17, 2011 3:53 pm
Reply with quote

Hello,

Below is the output of the job, there were no HASP messages before the HASP373 message,
Code:

                   J E S 2  J O B  L O G  --  S Y S T E M  L P A R  --  N O D E
                                                                               
05.16.16 JOB01227 ---- TUESDAY,   17 MAY 2011 ----                             
05.16.16 JOB01227  IRR010I  USERID USERID  IS ASSIGNED TO THIS JOB.           
05.16.16 JOB01227  IEFC165I // $AJ(TESTER1)  253                               
05.16.16 JOB01227  $AJ(TESTER1)                                                 
05.16.16 JOB01227  ICH70001I USERID  LAST ACCESS AT 05:15:32 ON TUESDAY, MAY 17
05.16.16 JOB01227  $HASP373 USERIDJ STARTED - INIT 26   - CLASS S - SYS LPAR   
05.16.16 JOB01227  IEF403I USERIDJ - STARTED - TIME=05.16.16                   
05.16.16 JOB01227  -                                         --TIMINGS (MINS.)--
05.16.16 JOB01227  -JOBNAME  STEPNAME PROCSTEP    RC   EXCP    TCB    SRB  CLOCK
05.16.16 JOB01227  -USERIDJ STEP1                00      7    .00    .00     .0
05.16.16 JOB01227  IEF404I USERIDJ - ENDED - TIME=05.16.16                     
05.16.16 JOB01227  -USERIDJ ENDED.  NAME-0001 TSG COMMAND     TOTAL TCB CPU TIM
05.16.16 JOB01227  $HASP395 USERIDJ ENDED                                     
------ JES2 JOB STATISTICS ------                                               
  17 MAY 2011 JOB EXECUTION DATE                                               
            5 CARDS READ                                                       
           33 SYSOUT PRINT RECORDS                                             
            0 SYSOUT PUNCH RECORDS                                             
            2 SYSOUT SPOOL KBYTES                                               
         0.00 MINUTES EXECUTION TIME                                           
        1 //JOBCARD
        2 //         COMMAND '$AJ(TESTER1)'                                     
        3 //STEP1   EXEC PGM=IEFBR14                                           
ICH70001I USERID  LAST ACCESS AT 05:15:32 ON TUESDAY, MAY 17, 2011             
IEF142I USERIDJ STEP1 - STEP WAS EXECUTED - COND CODE 0000                     
IEF373I STEP/STEP1   /START 2011137.0516                                       
IEF374I STEP/STEP1   /STOP  2011137.0516 CPU    0MIN 00.00SEC SRB    0MIN 00.00S
IEF375I  JOB/USERIDJ/START 2011137.0516                                       
IEF376I  JOB/USERIDJ/STOP  2011137.0516 CPU    0MIN 00.00SEC SRB    0MIN 00.00S


I am aware of only the ULOG on SDSF, could you please let me know how to check out SYSLOG?

Regards,
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue May 17, 2011 3:57 pm
Reply with quote

maybe this will work :

To print part of the SYSLOG to a preallocated data set:
Go to SDSF
Type the PRINT Command like this: PT ODSN SDSF.PRINT * MOD
Then type the PRINT command with the date and time for which you need to print the log: PT 06.00.00 10/15/2008 10.00.00 10/15/2008
Then type this command: PT CLOSE
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue May 17, 2011 4:13 pm
Reply with quote

Hello Peter, Thanks for the information.
Unfortunately, I do not have access to perform PT ODSN SDSF.PRINT * MOD

Regards,
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue May 17, 2011 6:58 pm
Reply with quote

Are you able to issue the log command from sdsf. This will show you the syslog. If not go into SDSF issue the da command then issue the pre command.
now the first job you see in the da panel should be *MASTER*
Select this, if this works you are now in the syslog. If neither of these options work....... I don't know how to continue
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue May 17, 2011 7:21 pm
Reply with quote

The log command worked from SDSF(I have never seen the SYSLOG before)

Upon searching the SYSLOG there were some messages related to the job which was submitted to release another job,

Code:
IRR010I  USERID USERID  IS ASSIGNED TO THIS JOB.                   
IEFC165I // $AJ(TESTERJ) 890                                       
$AJ(TESTERJ)                                                       
ICH70007I USER AUTHORITY CANNOT BE USED FOR THIRD-PARTY 892         
          AUTHORIZATION CHECK FOR USER (USERID ) GROUP (SYSTEM ) 
          BECAUSE THE EXECUTION NODE (NODE) IS NOT LOCAL.       
          UACC WILL BE USED.                                       
ICH408I JOB(JES2    ) STEP(IEFPROC ) 893                           
  JES2.MODIFYRELEASE.BAT CL(OPERCMDS)                               
  INSUFFICIENT ACCESS AUTHORITY                                     
  FROM JES2.MODIFY*.BAT* (G)                                       
  ACCESS INTENT(UPDATE )  ACCESS ALLOWED(NONE   )                   
$HASP690 COMMAND REJECTED - AUTHORIZATION FAILURE                   
ICH70001I USERID  LAST ACCESS AT 08:32:57 ON TUESDAY, MAY 17, 2011
$HASP373 USERIDO STARTED - INIT 26   - CLASS S - SYS LPAR         
IEF403I USERIDO - STARTED - TIME=08.39.51


It says,
BECAUSE THE EXECUTION NODE (NODENAME) IS NOT LOCAL.
Does that mean that JES is being shared or something, and I have to route my relase job to some other JES node?

Regards,
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue May 17, 2011 8:47 pm
Reply with quote

As the old saying goes you are up a well known creek without a paddle. I could be wrong here as RACF is not my strong point but I believe the message means that the Racf class RACFVARS is active and the &RACLNDE profile does not contain the Local JES2 Node. (I am willing to be corrected here) . This means that if you wish submit the command from batch you will have to get your RACF people to change the definitions. If however you are allowed to issue the console command you could issue that from batch and then everything should be OK again. From within ispf issue the command tso console if the system prompts you with console then you should be able to build a batch job to do what you want. To get out of console mode just enter the command end.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue May 17, 2011 10:23 pm
Reply with quote

As the old saying goes you are up a well known creek without a paddle. I could be wrong here as RACF is not my strong point but I believe the message means that the Racf class RACFVARS is active and the &RACLNDE profile does not contain the Local JES2 Node. (I am willing to be corrected here) . This means that if you wish submit the command from batch you will have to get your RACF people to change the definitions. If however you are allowed to issue the console command you could issue that from batch and then everything should be OK again. From within ispf issue the command tso console if the system prompts you with console then you should be able to build a batch job to do what you want. To get out of console mode just enter the command end.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Wed May 18, 2011 2:17 am
Reply with quote

Hello,

I do not have access to console as well. So will have to request Security associates for help. I have opened a request with some information from this thread and hopefully it will get sorted out soon.
Many thanks for your thoughts Nevil.

Regards,
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 -> JCL & VSAM Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top