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!
Chance to close a file that was originally opened as output
- 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
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.
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.
d.sch.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4415
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
-
Is there a way to turn off the free=close bit
by jdechirico » Wed Apr 02, 2025 7:31 pm » in Assembler - 1
- 1120
-
by sergeyken
View the latest post
Wed Apr 02, 2025 8:08 pm
-
-
-
Commit issued without hold and without close cursor statemen
by ravi11081992 » Sat Jan 22, 2022 2:42 pm » in DB2 - 2
- 2224
-
by engh
View the latest post
Tue Sep 20, 2022 6:07 pm
-
-
-
Can i read output file created after SORTing in the same pgm
by savitha_y » Sat Feb 06, 2021 1:17 am » in IBM Cobol - 4
- 1610
-
by savitha_y
View the latest post
Tue Feb 09, 2021 7:11 pm
-
-
- 3
- 2773
-
by willy jensen
View the latest post
Tue Jun 29, 2021 1:36 pm