Code Comments
Programming Forum and web based access to our favorite programming groups.I was converting a 35 year old OS Cobol program to Enterprise Cobol today. All the CLOSE statements in this program had CLOSE file-name WITH DISP. I don't happen to have a 35 year old manual and this is not valid for Enterprise Cobol. Does anyone remember what CLOSE WITH DISP was supposed to do?
Post Follow-up to this messagePage 443 of the OS/VS COBOL program says that "CLOSE WITH DISP" means to use whatever is on the DISP parameter of the JCL - so it sounds like you can jus t remove it and things should work "as expected". -- Bill Klein wmklein <at> ix.netcom.com "Ron S" <SpamStopper@NoSpam.Org> wrote in message news:kPidnT8JnsQ3TuzdRVn_vQ@giganews.com... > I was converting a 35 year old OS Cobol program to > Enterprise Cobol today. All the CLOSE statements in > this program had CLOSE file-name WITH DISP. I don't > happen to have a 35 year old manual and this is not > valid for Enterprise Cobol. Does anyone remember > what CLOSE WITH DISP was supposed to do? > >
Post Follow-up to this message> Page 443 of the OS/VS COBOL program says that "CLOSE WITH DISP" means to use > whatever is on the DISP parameter of the JCL - so it sounds like you can j ust > remove it and things should work "as expected". > Thanks. I did remove it and all was well but I was just curious as to what i ts purpose was years ago. Not much, it would seem.
Post Follow-up to this messageRon S wrote: > > > Thanks. I did remove it and all was well but I was just curious as to what its > purpose was years ago. Not much, it would seem. > > As a PS to that, it is too bad that some of those old tape methods left Cobol. They would work very well for things like CD"s and DVD's on a PC, for example. With properly working label records and mount dismount close commands, someone could actually do proper backup of data without leaving Cobol. The Rewritable DVD is quite a neat device. I think it will be arround for a while, at least as a prototype. Donald
Post Follow-up to this messageRon S wrote: > > > Thanks. I did remove it and all was well but I was just curious as to what its > purpose was years ago. Not much, it would seem. > > A wag ... close with rewind vs close with dismount type of thing at the JCL level? Donald
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.