Dynamic allocation - freeing but keeping

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

Dynamic allocation - freeing but keeping

Postby ctrevino » Wed Jun 09, 2010 7:10 pm

Hi all,
I am still working on my dynamic allocation routine. I have everything working but this: when I execute the FREE FI(dsn) command, it is deleting the dataset. How can I free up the DALDUMMY so that I can create a new dataset but not loose the one that I just freed.

Thanks in advance,

Christy T.

Wherever you go, there you are - Buckaroo Banzai
Posts: 62
Joined: Tue Feb 23, 2010 1:23 am
Has thanked: 0 time
Been thanked: 0 time

Re: Dynamic allocation - freeing but keeping

Postby Robert Sample » Wed Jun 09, 2010 7:51 pm

When you free the data set, the disposition controls what happens to it. Change the disposition and you'll change the results.
Robert Sample
Global moderator
Posts: 3686
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 274 times

Return to IBM Cobol


  • Related topics
    Last post