Microsoft KB Archive/10148

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:13, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q10148 to Microsoft KB Archive/10148 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Obtaining File-Handle Information

PSS ID Number: Q10148 Article last modified on 11-16-1992

1.07 1.10 1.12 MS-DOS

Question: Is it possible to obtain the COBOL file handle in COBOL Version 1.x? If so, how is it done?

Response: Under COBOL Version 1.12, no file handles are used. You can use FCBs (File Control Blocks), which are the MS-DOS Version 1.x methods of handling files. Under COBOL Version 2.00, you can use file handles for your files; however, they are not available to the COBOL programmer. The COBOL program uses the filename, and it is converted into a file handle. If you want to get a file handle for a file not used by COBOL, it is necessary to write an assembly-language subroutine.

Copyright Microsoft Corporation 1992.