View previous topic :: View next topic
|
Author |
Message |
mf_user Currently Banned New User
Joined: 05 Jan 2006 Posts: 47
|
|
|
|
Hi,
A job XXXX is cancelled by some user on a particular day. What is the CA-7 command to know such details?
What CA-7 command can give us the details like who submitted which job through CA-7 scheduler?
Please help.
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
A job XXXX is cancelled by some user on a particular day |
It is a very bad practice to have user(s) cancel jobs. You should be able to get the info you want from the syslog or by asking the scheduling people.
When CA-7 submits a job it is not associated with a particular user. Again, for complete info, talk with your scheduling people. |
|
Back to top |
|
|
szakhtar Warnings : 1 New User
Joined: 28 Apr 2005 Posts: 1
|
|
|
|
If you dont know the answer. Dont reply to the string. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
It is not here a Police Office. It is a forum, so any good advice is welcome. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
szakhtar wrote: |
If you dont know the answer. Dont reply to the string. |
Did you read Dicks' answer..here I paste the suggestion again from His post..
Quote: |
When CA-7 submits a job it is not associated with a particular user. Again, for complete info, talk with your scheduling people |
In production, anyone cann't just cancel some JOB without any prior authority..there is usually a support system to put a JOB on Hold..CANCELation of a JOB in production is far away...suggestion is good enough.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello szakhtar and welcome to the forums,
Quote: |
If you dont know the answer. Dont reply to the string. |
I'll assume your post was based on ignorance or that your keyboard went a bit goofy and i'll ignore it.
Just because you might not agree with an answer does not mean it is not a correct answer.
Hopefully, you will find some things of value in the forums. Good luck |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
If you dont know the answer. Dont reply to the string. |
instead of bashing people , why don' t You give the answer Yourself ???
if a job was canceled, the sceduler will realize that a s222 abend has occurred,
but will not be aware of who canceled the job
the only way is to look at the system log
as far as the userid assigned to a particular job when it is being run everithing depends on the setup of the system
there are two options ( at least for OPC )
submit everithing under the OPC userid ( it would give access to EVERITHING )
submit each job with the proper userid in order to have a finer control on the authorizations |
|
Back to top |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
szakhtar,
Quote: |
If you dont know the answer. Dont reply to the string. |
Try to avoid such replies in the forum. We are here to learn and share.
If you are able to help anybody here fine, well otherwise try to learn from the techies.
Enrico,
Quote: |
submit everithing under the OPC userid ( it would give access to EVERITHING ) |
Do you mean Operations Control as OPC ? I beleive all the production jobs runs under the Operations Job card.
I think you cannot cancel a job submiited by other people in the test environment, unless you have access to do tat. (thats really a bad practice)
In production scenario, only scheduling ppl can cancel the job.
Techies, when you cancel, the message will be something like this. I doubt userid will be appearing in the Log.
Quote: |
$HASP106 JOB DELETED BY JES2 OR CANCELLED BY OPERATOR BEFORE EXECUTION
------ JES2 JOB STATISTICS ------ |
Quote: |
BATCHTSO STEP01 - ABEND=S222 U0000 |
Will be abend code with no information about the user-id . |
|
Back to top |
|
|
Robin Johnson
New User
Joined: 21 Feb 2008 Posts: 12 Location: Arkansas
|
|
|
|
mf_user wrote: |
Hi,
A job XXXX is cancelled by some user on a particular day. What is the CA-7 command to know such details?
What CA-7 command can give us the details like who submitted which job through CA-7 scheduler?
Please help.
Thanks. |
I think that I have the answer to your question. I hope that this helps. We had to use this just the other day:
LRLOG,LIST=ALL,DATE=*08051,ST=CANCEL
The 08051 is the year (08) and 051 is the Julian date. |
|
Back to top |
|
|
evanswillo
New User
Joined: 28 Jun 2007 Posts: 23 Location: Bmth England
|
|
|
|
Best option is to run a SASSHIS8 02 report against the Fistory log. |
|
Back to top |
|
|
Robin Johnson
New User
Joined: 21 Feb 2008 Posts: 12 Location: Arkansas
|
|
|
|
Not even sure what that is. I will look it up and see if that makes sense for my shop. |
|
Back to top |
|
|
evanswillo
New User
Joined: 28 Jun 2007 Posts: 23 Location: Bmth England
|
|
|
|
Take a look at the Report Guide Manual. History Reporting Transaction Detail Report SASSHR02. You will need to create a small batch job. Let me know if you need more help. |
|
Back to top |
|
|
Robin Johnson
New User
Joined: 21 Feb 2008 Posts: 12 Location: Arkansas
|
|
|
|
I have that job in my JCL library. I am still new at the CA7 stuff and have poured over the manuals, and I am still learning. I ran this report. One thing that happened is that we exceeded the lines and got into a bit of a spool usage situation. I got ambitious and did the dates for a week. That produced lots of output. It looks like every transaction that took place for a week.
I just tried another for one day. It was better. I have looked in the manual and help for CA7. Is there a way to specify the type of transaction that you are looking for, like only producing output cancelled jobs? Thanks for the offer, and your knowledge. |
|
Back to top |
|
|
Robin Johnson
New User
Joined: 21 Feb 2008 Posts: 12 Location: Arkansas
|
|
|
|
What I meant was: Can you specify in the JCL for only jobs that were cancelled...specify that actual crteria that you are looking for and not all log activity? Sorry...Monday morning and the coffee has not kicked in yet. |
|
Back to top |
|
|
evanswillo
New User
Joined: 28 Jun 2007 Posts: 23 Location: Bmth England
|
|
|
|
We run this report for a whole month just for your info
Sorry this report shows all the commands entered.
You could narrow the search by changing fields 42-49 to include the user id.
Or as we do at our site produce the report then use filemaster to seach through the output for SELRECIF(1,0,C" CANCEL,"),
OR(1,0,C"* C "). |
|
Back to top |
|
|
Robin Johnson
New User
Joined: 21 Feb 2008 Posts: 12 Location: Arkansas
|
|
|
|
Evanswillo,
Thanks for the information. Looks like I need to keep hitting the manuals and help screens and dig further into this. I would like to use this tool (CA7) to the fullest potential. Thank you for your help. You may hear from me again |
|
Back to top |
|
|
rchitike
New User
Joined: 12 Jun 2008 Posts: 1 Location: Hyderabad
|
|
|
|
Hi,
A set of jobs XXXX are cancelled by some user on a particular day.How can I get the user id / name, who has cancelled these set of jobs.
Can u please provide the code with which I can submit a test job & get the detalis of user. |
|
Back to top |
|
|
evanswillo
New User
Joined: 28 Jun 2007 Posts: 23 Location: Bmth England
|
|
|
|
You need to refer to CA7 Reports Guide Chapter History Reporting.
Transaction Detail report 02
How many days do you need to go back. |
|
Back to top |
|
|
evanswillo
New User
Joined: 28 Jun 2007 Posts: 23 Location: Bmth England
|
|
|
|
This code should look through the history log, logp and logs for all transactions going back 24hrs starting at 0700. Output to outputdsn
//SASSHIS8 EXEC SASSHIS8
//SYSLIST DD DSN=OUTPUTDSN,DISP=OLD
//UCC7HIST DD DSN=*.HISTORY.LOG(0),DISP=SHR
// DD DSN=*.LOGS,DISP=SHR
// DD DSN=*.LOGP,DISP=SHR
//SYSIN DD *
02ALL 01DAY0700 SN 12 *ALL* |
|
Back to top |
|
|
Lijo George
New User
Joined: 16 Jul 2008 Posts: 2 Location: Bangalore
|
|
|
|
[quote="Robin Johnson"]
mf_user wrote: |
Hi,
A job XXXX is cancelled by some user on a particular day. What is the CA-7 command to know such details?
I think that I have the answer to your question. I hope that this helps. We had to use this just the other day:
LRLOG,LIST=ALL,DATE=*08051,ST=CANCEL
The 08051 is the year (08) and 051 is the Julian date. |
'LRLOG,LIST=ALL,DATE=*08051,ST=CANCEL'
This command will show the JOBS that were cancelled on the particular day .. Only JOBS ... the requestor has asked for "Who cancelled " ...
Normally to get the details of Jobs cancelled, restarted, ... pgmrs will schedule some job to obtain those details and in the o/p ($AVRS) it will be showing up..
another way .. check the CA7log .. search for job name .. you can get the id who cancelled the job...(but syslog will be available only for a small period) .. |
|
Back to top |
|
|
Lijo George
New User
Joined: 16 Jul 2008 Posts: 2 Location: Bangalore
|
|
|
|
Usually some job will be scheduled in CA7, to give a list of activities like Requirement posting, Demanding, Canccel, Force complete ,.... which was performed in the last one week...
Eg: CA7RPTSA (this job is set in one of the system to generate such report)
In the JCL of this job , its mentioned that with the help of REXX this has been set up ...
/*REXX*/
/********************************************************************/
/* THIS PURPOSE OF THIS EXEC IS TO SCAN A DATASET CONTAINING A CA7 */
/* TRANSACTION DETAIL REPORT LOOKING FOR JOBS THAT WERE ADDED TO */
/* THE REQUEST QUEUE BY THE DEMAND OR RUN COMMAND. A LIST OF THE */
/* JOBS ALONG WITH THE DATE, TIME, TERMINAL AND USER ID OF THE */
/* PERSON ISSUING THE COMMAND ARE PRINTED TO SYSOUT.
Sample REXX:
-----------------
/* TO EXECUTE: %CA7DMDRP */
/********************************************************************/
/********************************************************************/
/* GET INPUT FILE NAMES AND SET VARIABLES. */
/********************************************************************/
DSINFO = LISTDSI(INDD FILE) /* GET INPUT DATASET INFORMATION */
DSN = SYSDSNAME /* SAVE DATASET NAME */
FNDSTRG = ' DEMAND,' /* SET SEARCH STRING */
FNDSTRG1 = ' DEMANDH,' /* SET SEARCH STRING */
FNDSTRG2 = ' RUN,' /* SET SEARCH STRING */
FNDSTRG3 = ' RUNH,' /* SET SEARCH STRING */
A = 0 /* INITIALIZE COUNTER */
B = 0 /* INITIALIZE COUNTER */
________________
I think this will help you in sme manner ... |
|
Back to top |
|
|
VENUKOTHA
New User
Joined: 09 Aug 2008 Posts: 1 Location: Seattle USA
|
|
|
|
Hello !
To know who cacelled a job or forced it or what ever the case may be..!
In CA scheduler ther is a option of audit reports which takes the input arguments like job name date and the command's and display the activities done. so in the report search for the jobname or the 'CANCEL' it will show you all the details of what has happend to the job who did that and time when it was done and many more details.
This option is avaialble in CA-9 version directly in the mainmenu but not sure where it is in CA-7 but quite confident that it shold be ther as the audit reports database that is being used in both versions is the same one. |
|
Back to top |
|
|
sridharsudana
New User
Joined: 15 Dec 2008 Posts: 6 Location: Pune
|
|
|
|
Hi,
No top line command can give the user id who cancelled the job in CA7. using SASSHIS8 program in CA7 utilities , we can get the entire report of CA7. it will give the User id who cancelled and who demand that particular job.
Thanks,
Sri |
|
Back to top |
|
|
|