Chance to close a file that was originally opened as output

IBM's cross-platform compiler PL/I for MVS, VM & VSE, OS/390 and Enterprise PL/I for z/OS
kaikid
Posts: 1
Joined: Thu Nov 20, 2008 12:09 pm
Skillset: Intermediate
Referer: Google

Chance to close a file that was originally opened as output

Postby kaikid » Thu Nov 20, 2008 12:14 pm

Hello everybody!
I have a simple question:

In PL/I: Is there any chance to close a file that was originally opened as output (and written), and after closing it, reopen it as an INPUT FILE in order to PRINT the records?

Thanks in advanced!

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

Re: Chance to close a file that was originally opened as output

Postby dick scherrer » Fri Nov 21, 2008 6:45 am

Hello,

I don't speak pl/i, but in other languages, a file that has been opened may be closed then re-opened.

The commands/verbs are often CLOSE and OPEN. An "open" positions to the beginning of the file.
Hope this helps,
d.sch.


  • Similar Topics
    Replies
    Views
    Last post