It's the buffer that's flushed, not the stack, anf it's when you do the charin or linein following the prompt.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Paul Gilmartin <0000042bfe9c879d-dmarc-requ...@listserv.ua.edu> Sent: Friday, June 20, 2025 5:14 PM To: IBM-MAIN@LISTSERV.UA.EDU <IBM-MAIN@LISTSERV.UA.EDU> Subject: Re: In IBM-land, AFP means... External Message: Use Caution On Fri, 20 Jun 2025 20:48:01 +0000, Seymour J Metz wrote: >The closest TSO has to standard input and output is the stack. > >There is in implied interaction between charin and charout; you want a prompt >to be written before doing the read. So while it is buffered there has to be >provision for automatically flushing it. > And some want to be able to type a reply on the same line as the prompt. call charout( , 'Prompt: ' ) /* Handles that nicely. */ When should your putative stack be flushed? -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN