For Programmers: Free Programming Magazines  


Home > Archive > Cobol > April 2004 > Close with disp ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Close with disp ?
Ron S

2004-04-05, 6:30 pm

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?


William M. Klein

2004-04-05, 7:30 pm

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 just
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?
>
>



Ron S

2004-04-05, 10:30 pm

> 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 just
> 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 its
purpose was years ago. Not much, it would seem.


Donald Tees

2004-04-10, 6:30 am

Ron 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

Donald Tees

2004-04-10, 1:30 pm

Ron 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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com