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
 
Why BUFNO is used for output datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sravani

New User


Joined: 17 Jul 2005
Posts: 3

PostPosted: Tue Aug 16, 2005 7:59 pm    Post subject: Why BUFNO is used for output datasets
Reply with quote

Hi,

My JCL has the following statements. Can anyone tell me why BUFNO is used for output datasets?

//SORTOUT DD DSN=&&TEMP1,BUFNO=29,
// DISP=(NEW,PASS,DELETE),
// SPACE=(CYL,(1500,1000),RLSE,,ROUND),

Thanks,
Sravani
Back to top
View user's profile Send private message

withnams

New User


Joined: 06 Jul 2005
Posts: 26
Location: Chennai

PostPosted: Tue Aug 16, 2005 8:52 pm    Post subject:
Reply with quote

It perhaps means the number of buffers alloacted for that dataset.
Back to top
View user's profile Send private message
ironmike

New User


Joined: 07 Aug 2005
Posts: 33

PostPosted: Wed Aug 17, 2005 7:57 am    Post subject:
Reply with quote

BUFNO= is the number of buffers that will be used for buffering output for that data set. The example you coded appears to be for a sequential file. Increasing the number of buffers can improve performance if QSAM is used for writing to an output sequential file. Your example is for a SORTOUT DD, so the program writing to the file may be the SORT; SORT probably used BSAM or EXCP to write to this file, in which case SORT is probably doing intelligent buffer management and the BUFNO=29 may be ignored; if your program and not the SORT is writing to the file out of a SORT exit (e.g., the SORT E35 exit), then your program may be using QSAM and bumping up BUFNO can speed up the output process.

Here's a quote from IBM's DFSMS Using Data Sets manual:
Quote:
In QSAM, the value of BUFNO determines how many buffers will be chained together before I/O is initiated...When enough buffers are available for reading ahead or writing behind, QSAM attempts to read or write those buffers in successive revolutions of the disk.


Default BUFNO for a sequential, non-SYSOUT file is five.

Basically, if you've got no virtual storage constraints, large BUFNO = goodness! icon_biggrin.gif
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Aug 18, 2005 6:54 am    Post subject:
Reply with quote

DFSORT and Syncsort calculate and use their own BUFNO params for I/P and O/P.

Those supplied in the JCL are ignored.
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
This topic is locked: you cannot edit posts or make replies. Unavailable RECON datasets while exec... abdulrafi JCL & VSAM 10 Fri Apr 06, 2018 12:45 pm
No new posts Creation of Datasets dynamically on t... Raghu M N DFSORT/ICETOOL 8 Fri Mar 16, 2018 12:56 am
No new posts How to get the output from submit com... Joanna2016 CLIST & REXX 10 Tue Feb 06, 2018 7:26 am
No new posts Enterprise PL/I - dynamic allocation ... prino PL/I & Assembler 0 Mon Jan 29, 2018 10:17 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

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