Skip to main content

Problem:

This demo returns information about the operating system environment via the library call CBL_GET_OS_INFO.

Resolution:

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 folder

CBLTYPES.CPY

Located in your Net Express\\base\\source folder

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 here;  

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/osversioninfo_str.asp

==========================================================

Keywords: Example, sample, demo, demonstration, GetOSInfo.zip

demo.ex

demo.ne

Attachments:

GetOSInfo.zip

Old KB# 3966