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

SYSOUT details in a PDS


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

New User


Joined: 11 Sep 2008
Posts: 13
Location: India

PostPosted: Sat Nov 22, 2008 12:29 pm
Reply with quote

Hi,

I want to store all the details of SYSOUT of a paticular job in a file.
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Sat Nov 22, 2008 12:33 pm
Reply with quote

Hi,

Instead of
//SYSOUT DD *

U Can code,
//SYSOUT DD DSN=Filename

Regards
R KARTHIK
Back to top
View user's profile Send private message
lalitha.p

New User


Joined: 11 Sep 2008
Posts: 13
Location: India

PostPosted: Sat Nov 22, 2008 12:53 pm
Reply with quote

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

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Sat Nov 22, 2008 2:09 pm
Reply with quote

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

New User


Joined: 11 Sep 2008
Posts: 13
Location: India

PostPosted: Sat Nov 22, 2008 2:24 pm
Reply with quote

Could you pls explain detail as I am not getting where to remove DDNAME's
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 22, 2008 2:33 pm
Reply with quote

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

New User


Joined: 11 Sep 2008
Posts: 13
Location: India

PostPosted: Sat Nov 22, 2008 2:45 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 22, 2008 2:51 pm
Reply with quote

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

New User


Joined: 11 Sep 2008
Posts: 13
Location: India

PostPosted: Sat Nov 22, 2008 3:53 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 22, 2008 4:17 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Nov 22, 2008 4:19 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 22, 2008 7:02 pm
Reply with quote

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 icon_smile.gif
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

 


Similar Topics
Topic Forum Replies
No new posts JCL SORT to compress the student's de... DFSORT/ICETOOL 7
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
No new posts Splitting group records based on deta... DFSORT/ICETOOL 8
No new posts No sysout coming in spool JCL & VSAM 4
No new posts report on job scheduling details in Zeke IBM Tools 2
Search our Forums:

Back to Top