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
 
what does FLUSH do?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2088
Location: Silicon Valley

PostPosted: Fri Sep 01, 2017 8:32 pm    Post subject: what does FLUSH do?
Reply with quote

From the manual: "The FLUSH statement flushes the buffers associated with an open output file... [blah blah]"

It is not clear what 'flushes' means. It seems destructive.

Or does it mean that the buffers actually make it to the print file?
Back to top
View user's profile Send private message

steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 585
Location: The Universe

PostPosted: Fri Sep 01, 2017 9:26 pm    Post subject: Re: what does FLUSH do?
Reply with quote

Pedro wrote:
From the manual: "The FLUSH statement flushes the buffers associated with an open output file... [blah blah]" ...
Which manual? I searched the entire DFSMS manual set and found no "FLUSH" macro.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2088
Location: Silicon Valley

PostPosted: Sat Sep 02, 2017 2:47 am    Post subject: Reply to: what does FLUSH do?
Reply with quote

Sorry for not being clear.

I posted this question in the PLI & Assembler forum... it is a PLI question. I was referring to the Language Reference, SC14-7285.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1067
Location: Oostende, Belgium

PostPosted: Sat Sep 02, 2017 4:00 am    Post subject:
Reply with quote

FLUSH statement
The FLUSH statement can be used to flush one or all files.

Code:
FLUSH -+- FILE(file-reference) -+- ;
       +- FILE(*) --------------+

FILE
Specifies the name of the output file.
The FLUSH statement flushes the buffers associated with an open output file (or with all open output files if * is specified). This normally happens when the file is closed or the program ends, but the FLUSH statement ensures the buffers are flushed before any other processing occurs.

You can do this for SYSPRINT (after a PUT DATA) to make the output immediately visible in, for example, SDSF.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 171
Location: Switzerland

PostPosted: Mon Sep 04, 2017 1:35 pm    Post subject:
Reply with quote

FLUSH normally means writing the buffers to ther destination. This is not just a PL/I thing.
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Flush a queue in CICS Balaji Krishnamurthy CICS 4 Wed Aug 19, 2009 10:58 pm
No new posts Conds for a flush step vasco ferreira JCL & VSAM 7 Thu Dec 11, 2008 3:46 am

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