View previous topic :: View next topic
|
Author |
Message |
lalitha.p
New User
Joined: 11 Sep 2008 Posts: 13 Location: India
|
|
|
|
Hi,
I want to store all the details of SYSOUT of a paticular job in a file. |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
Instead of
//SYSOUT DD *
U Can code,
//SYSOUT DD DSN=Filename
Regards
R KARTHIK |
|
Back to top |
|
|
lalitha.p
New User
Joined: 11 Sep 2008 Posts: 13 Location: India
|
|
|
|
Below is the jcl i tried but the ouput file is not containing any data.
This code is working for all scenario's except to capture the delete info.
pls help
//I817058$ JOB CLASS=A,MSGLEVEL=(1,1),NOTIFY=&SYSUID,MSGCLASS=X,
// REGION=4M
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=I817058.INFILE.TEST1,
// DISP=(MOD,DELETE,DELETE)
//DD2 DD DSN=I817058.INFILE.TEST2,
// DISP=(MOD,DELETE,DELETE)
//SYSOUT DD DSN=I817058.TEST.OUTPS1,DISP=SHR
//SYSPRINT DD DSN=I817058.TEST.OUTPS1,DISP=SHR |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
program IEFBR14 does not use any DDNAMEs, hence nothing is written to either SYSOUT or SYSPRINT..
You can run IEFBR14 without the above DDNAME's as they are not needed.
Gerry |
|
Back to top |
|
|
lalitha.p
New User
Joined: 11 Sep 2008 Posts: 13 Location: India
|
|
|
|
Could you pls explain detail as I am not getting where to remove DDNAME's |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the output of a job run is made up of many datasets..
basically
3 system/JES managed datasets containg..
the job log
the job messages
the jcl before after variable substitution
- I might have mixed up the content, but for a rough explanation is more than enough
- as soon as I have the system up I' ll give the right name and content
- but You can find by Yourself going to an SDSF and typing ? in front of a job
the only ddnames You have control on are the OTHER ones, those defined and used for program I/O |
|
Back to top |
|
|
lalitha.p
New User
Joined: 11 Sep 2008 Posts: 13 Location: India
|
|
|
|
Hi Enrico,
Thanks for your response.
Could you pls give me the code what is that I have to use?
My program have to do the follwoing things:
1) Whenever a delete step is executed, it should be captured in a file
2) In order to check howmany files are deleted
3) The output file will be sent to CLIENT via mail
The code pasted above is capturing all the info excpt delete info.
Restrictions:
I cannot use IDCAMS utility in my programs
Could you pls help me on what is the right utility to be used and I'm grateful to you if you can give the corrrect source code
Is it possible find this information via REXX? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
then You will have to live without it,
but why in <HELL> such a IDIOT requirement not to use idcams..
NO... I ill not work to post something that can be done with a standard utility
the right utility, guess what is IDCAMS
using iefbr14 will cause a jcl error if Your dataset is not there,
using idcams is simple to route the sysprint datset and email it to whoever You want
why don' You run Yourself some simple tests to see using the ? how a job output is composed ??
the sys.../jes.... are unroutable at jcl level
terminology explanation...
<HELL> is a metaword to design any unpleasant place of Your choice
IDIOT on the other side means exactly that |
|
Back to top |
|
|
lalitha.p
New User
Joined: 11 Sep 2008 Posts: 13 Location: India
|
|
|
|
Quote: |
( Yes you are <damn> correct!!!!!
There are lot of such restrictions in my project.. DOnt use this dont use that.
I donna how i m gng to survive here..
I need to find lot of replacements! )
Do you want me to test with IDCAMS utility?
|
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
somebody planned the approach in the worst way possible,
placing the burden of auditing on each job
the proper way of doing it ( done it )
is to enforce a proper storage accounting/tracking system,
processing , let' s say weekly the SMF data, reporting on allocate delete activity
I hope that since You look like a multi client service provider,
You have a mean of classifying the datasets by looking at them or
by the userid who allocated deleted them
so each job does not have to worry about anything |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
That's the problem with some managers, they have never had a technical background. and honestly believe that they know better than the techies.
The way that I usually persuade them is by saying I have tried doing it your way with no sucess, but using this method I can get exactly what you need.
IDCAMS is the best solution here, as it will detail which datasets were deleted and those that did not exist at the time. An alternative method would be using SMF records to show which jobs have deleted which datasets, type 17 if I recall correctly. These can be used via SAS or SORT to extract the data you need.
Just out of curiosity, what is so interesting in seeing how many datasets get deleted ? The only reason that springs to mind is a possible look at seeing how much data might be deleted earlier to cut storage costs, but then again a well designed and implemented batch suite should take all of that into account anyway. Maybe just another symptom of bad management |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
they have never had a technical background. and honestly believe that they know better than the techies. |
I tend to put in the same brainless category also the techies that look only at the bits and bytes
and loose the organization/good_judgement perspective |
|
Back to top |
|
|
|