Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SYSOUT details in a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYSOUT details in a PDS
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    Post subject: Reply to: SYSOUT details in a PDS
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    Post subject: Reply to: SYSOUT details in a PS
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: 1703
Location: Australia

PostPosted: Sat Nov 22, 2008 2:09 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Sat Nov 22, 2008 2:33 pm    Post subject: Reply to: SYSOUT details in a PDS
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Sat Nov 22, 2008 2:51 pm    Post subject: Reply to: SYSOUT details in a PDS
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    Post subject: why don' You run Yourself some simple tests to see using the
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Sat Nov 22, 2008 4:17 pm    Post subject: Reply to: SYSOUT details in a PDS
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: 8620
Location: Back in jolly old England

PostPosted: Sat Nov 22, 2008 4:19 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Sat Nov 22, 2008 7:02 pm    Post subject: Reply to: SYSOUT details in a PDS
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts Connect Direct details shankarm IBM Tools 2 Sat Feb 20, 2016 7:25 pm
No new posts Sticky: Details on food and accommodations fo... mcmillan Site Announcements 4 Thu Dec 03, 2015 11:02 pm
No new posts Find the total of this field in SYSOUT karz DFSORT/ICETOOL 3 Thu Nov 13, 2014 2:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us