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

SYSOUT = DUMMY or commenting out unneeded displays ??


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

New User


Joined: 01 Oct 2008
Posts: 11
Location: Philadelphia, USA

PostPosted: Mon Nov 03, 2008 12:44 pm
Reply with quote

How Does SYSOUT = DUMMY helps in performance. Would it be same if i comment all the Displays in the code ??
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 03, 2008 1:20 pm
Reply with quote

from a pure performance point of view
taking away things ( displays in this case ) is the most appropriate action

DUMMYfying an output saves a bit of time and dasd space from a pure
data management point of view
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Nov 03, 2008 2:27 pm
Reply with quote

Hello,

Quote:
How Does SYSOUT = DUMMY helps in performance.
Who says it does? The only thing dd dummy "saves" is physical i/o and spool/dasd space. All of the work required to get to the point of the i/o is still done.

So, if a process reads a few million rows of some database tables to create a 200 line summary report and the report is assigned to dd dummy, tyhe savings is practically non-existent.

Quote:
Would it be same if i comment all the Displays in the code
The resulting output would be the same, but the resources needed would not change enough to measure.

On the other hand, if you have a process that writes millions of records to a qsam file and also produces a summary report and for debugging purposes you need to create the summary report, assigning the output qsam file to dd dummy will save considerable resources.

Do you have something more specific in mind?
Back to top
View user's profile Send private message
Sachinincsc

New User


Joined: 01 Oct 2008
Posts: 11
Location: Philadelphia, USA

PostPosted: Mon Nov 03, 2008 3:07 pm
Reply with quote

Thanks

I got my Answer and My collegues tooooooooo
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Nov 03, 2008 7:26 pm
Reply with quote

To suppress my debugging displays, I usualy use this feature:
Code:
       ENVIRONMENT DIVISION.       
       CONFIGURATION SECTION.         
       SOURCE-COMPUTER.              IBM-370 WITH DEBUGGING MODE.
Code:
      D        DISPLAY '=DBG=> CODE=' WS-CODE ' - PAGE=' WS-PAGE
      D             ' - DATE=' WS-DATE

At compile time:
  • When SOURCE-COMPUTER is WITH DEBUGGING MODE,
    the "D" in column 7 is considered as a space: the DISPLAY is part of the program and will be executed.
  • When the SOURCE-COMPUTER line is commented,
    the "D" in column 7 is considered as a comment, the DISPLAY will not be executed.
Only drawback (as far as I know): you have to recompile the program to hide/restore the "D" lines.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Nov 03, 2008 7:38 pm
Reply with quote

I code this as
Code:
       SOURCE-COMPUTER.                IBM-370
      *                                WITH DEBUGGING MODE
                                                          .
so I just have to take the asterisk out of column 7 to change the program behavior. Note the period is on the third line, just past and underneath MODE.
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 Monitoring production job progress. N... JCL & VSAM 4
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
No new posts No sysout coming in spool JCL & VSAM 4
No new posts Control M features to check string in... Compuware & Other Tools 1
No new posts DUMMY When do I need add a DCB parameter JCL & VSAM 3
Search our Forums:

Back to Top