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

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!
kaikid
 
Posts: 1
Joined: Thu Nov 20, 2008 12:09 pm
Has thanked: 0 time
Been thanked: 0 time

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.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to PL/I

 


  • Related topics
    Replies
    Views
    Last post