Dynamic file allocation in COBOL subroutine



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: Dynamic file allocation in COBOL subroutine

Postby dick scherrer » Fri Apr 30, 2010 3:02 am

Hello,

but I am not new to this forum as I have been continously browsing the contents of this forum from last 2 years
This is known as "lurking in the forum". . . :)

I first want to delete the exisiting file as I dont need the old records of that file.
If the file is opened as output and the DISP was OLD, the existing records would be over-written - they would no longer exist after the OPEN OUTPUT. Having said that, i believe it is cleaner to delete/free/re-allocate. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Re: Dynamic file allocation in COBOL subroutine

 

Re: Dynamic file allocation in COBOL subroutine

Postby Hardik » Fri Apr 30, 2010 2:31 pm

Thanks for all your help :D
Hardik
 
Posts: 5
Joined: Wed Apr 28, 2010 6:46 pm
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post