Created On:  19 June 2006

Problem:

This demo returns information about the operating system environment via the library call CBL_GET_OS_INFO. This demo also demonstrate the usage of the Library Routine Type definitions and Call Prototypes. Net Express contains two copyfiles; one contains data items used by the library routines specified as type definitions, or TYPEDEFs, while the other contains call prototypes for the library routines. These can be used in your COBOL programs to enable the Compiler to validate all calls to these routines.

Resolution:

INTRODUCTION

Returns information about the operating system  environment via the library call CBL_GET_OS_INFO.  This demo also demonstrate the usage of the Library  Routine Type Definitions and Call Prototypes.  Net Express  contains two copyfiles; one contains data items used by the  library routines specified as type definitions, or TYPEDEFs,  while the other contains call prototypes for the library routines.  These can be used in your COBOL programs to enable the Compiler  to validate all calls to these routines.

SOURCE FILES:

Program Files           Description

--------------------     -----------------------------------------------------------

GetOSInfo.cbl         Sample program used for the demo

Copy Files:

--------------------     -----------------------------------------------------------

CBLPROTO.CPY      Located in your Net Express\\base\\source directory

CBLTYPES.CPY        Located in your Net Express\\base\\source directory

REQUIREMENTS:

None.

OPERATION:

Simply rebuild the program under Debug or Release Build and animate.

REFERENCES:

1) Documentation for the CBL_GET_OS_INFO call can be found in the Net Express online help under:  Reference > Library Routines > Alphabetical list of library routines > CBL_GET_OS_INFO

2) Additional information on Library Routine Type Definitions and Call Prototypes can be found in the Net Express online help under: Programming > Calling Programs > Call prototypes > Using the Library Routine Type Definitions and Call Prototypes

NOTE:

Additional details on how to interpret the Major and Minor version  for Windows OS can be found at: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724834(v=vs.85).aspx

Incident #22533