Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

CA-7 Commands to find who cancelled the Job
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
mf_user
Currently Banned

New User


Joined: 05 Jan 2006
Posts: 47

PostPosted: Mon Nov 26, 2007 6:30 pm    Post subject: CA-7 Commands to find who cancelled the Job
Reply with quote

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

dick scherrer

Site Director


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

PostPosted: Mon Nov 26, 2007 9:36 pm    Post subject:
Reply with quote

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
View user's profile Send private message
szakhtar
Warnings : 1

New User


Joined: 28 Apr 2005
Posts: 1

PostPosted: Fri Jan 18, 2008 10:34 am    Post subject: Reply to: CA-7 Commands
Reply with quote

If you dont know the answer. Dont reply to the string.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Fri Jan 18, 2008 12:01 pm    Post subject:
Reply with quote

It is not here a Police Office. It is a forum, so any good advice is welcome.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Jan 18, 2008 3:00 pm    Post subject: Re: Reply to: CA-7 Commands
Reply with quote

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

Site Director


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

PostPosted: Fri Jan 18, 2008 8:50 pm    Post subject:
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Jan 18, 2008 9:23 pm    Post subject: Reply to: CA-7 Commands to find who cancelled the Job
Reply with quote

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

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Mon Jan 21, 2008 10:50 am    Post subject:
Reply with quote

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

New User


Joined: 21 Feb 2008
Posts: 12
Location: Arkansas

PostPosted: Tue Feb 26, 2008 8:47 am    Post subject: Re: CA-7 Commands to find who cancelled the Job
Reply with quote

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

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bmth England

PostPosted: Mon May 12, 2008 4:13 pm    Post subject:
Reply with quote

Best option is to run a SASSHIS8 02 report against the Fistory log.
Back to top
View user's profile Send private message
Robin Johnson

New User


Joined: 21 Feb 2008
Posts: 12
Location: Arkansas

PostPosted: Mon May 12, 2008 5:43 pm    Post subject:
Reply with quote

Not even sure what that is. I will look it up and see if that makes sense for my shop.
Back to top
View user's profile Send private message
evanswillo

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bmth England

PostPosted: Mon May 12, 2008 5:55 pm    Post subject:
Reply with quote

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

New User


Joined: 21 Feb 2008
Posts: 12
Location: Arkansas

PostPosted: Mon May 12, 2008 6:24 pm    Post subject:
Reply with quote

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

New User


Joined: 21 Feb 2008
Posts: 12
Location: Arkansas

PostPosted: Mon May 12, 2008 6:28 pm    Post subject:
Reply with quote

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

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bmth England

PostPosted: Mon May 12, 2008 6:40 pm    Post subject:
Reply with quote

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

New User


Joined: 21 Feb 2008
Posts: 12
Location: Arkansas

PostPosted: Mon May 12, 2008 6:46 pm    Post subject:
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
rchitike

New User


Joined: 12 Jun 2008
Posts: 1
Location: Hyderabad

PostPosted: Tue Jun 17, 2008 3:07 pm    Post subject:
Reply with quote

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

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bmth England

PostPosted: Tue Jun 17, 2008 3:13 pm    Post subject:
Reply with quote

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

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bmth England

PostPosted: Tue Jun 17, 2008 3:18 pm    Post subject:
Reply with quote

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

New User


Joined: 16 Jul 2008
Posts: 2
Location: Bangalore

PostPosted: Thu Jul 17, 2008 11:55 am    Post subject: Re: CA-7 Commands to find who cancelled the Job
Reply with quote

[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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts Invoking CA 7 commands through REXX kenshin CLIST & REXX 10 Fri Aug 12, 2016 9:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us