home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Egull PC COBOL Advanced Function Library
-
- Version 3.0
-
- Screen Library Utility
-
-
- Copyright (C) Scott Richard McLeod 1989, 1990
- All Rights Reserved
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $50 Shareware Contribution Requested
-
-
-
-
-
-
- Egull PC-COBOL Advanced Function Library
- Screen Image Library Utility
-
-
-
- SCRLIB
- ══════
- The Screen Image Library utility is supplied with the Egull PC
- COBOL Advanced Function Library. This program is very simple.
- It allows you to group from 1 to 99 screen images into a single
- file. Screen images include Screen Image Files, CGA Picture
- Files, CGA Image Files, EGA Picture Files and EGA Image Files.
-
- The contents of this library can then be displayed using the
- "SCR_DISPLAY_SIL_FILE", "CGA_DISPLAY_PIC_LIB",
- "CGA_DISPLAY_IMG_LIB", "EGA_DISPLAY_PIC_LIB" and
- "EGA_DISPLAY_IMG_LIB" functions (depending on the screen image
- type.
-
- This utility is started at the DOS prompt by entering the
- following command:
-
- C:>SCRLIB {filename}
-
- where the {filename} is the name of a file that contains the
- library specifications you want to execute. You can specify a
- drive and/or path as part of the filename if you like.
- Otherwise the file must be located in the current drive and
- directory.
-
- The filename you entered above contains the control statements
- the define how the library should perform its tasks. The file
- is a standard 80 character file (line sequential in COBOL terms)
- that you can create using EDLINE or any other editor.
-
- The format of the control file is very simple. The first record
- contains the name of the library file you want to create. If
- the file already exists it will be replaced. You can specify a
- drive and/or a path for the library name if you like but the
- total length of the file name may not exceed 70 characters. You
- should name the file with a .SIL extension for ease of
- documentation since that is how I will refer to them. You can
- name the extension anything you want however. See the sample
- below:
-
- ----+----1----+----2----+----3----+----4----+----5----+----6
- C:\COBOL\MYLIB.SIL
-
- After the first record that defines the library name, you will
- follow it with records that define the names of .SIF (Screen
- Image Files) that you want to place into the library. You must
- be sure that each of the files exist. Note that like the
- library name you may specify a drive and path as part of the
- name. See the example below:
-
- ----+----1----+----2----+----3----+----4----+----5----+----6
- C:\COBOL\MYLIB.SIL
- C:\COBOL\SCREEN1.SIF
- \COBOL\SCREEN2.SIF
- SCREEN3.CGA
-
- 1.
-
-
-
-
- Egull PC-COBOL Advanced Function Library
- Screen Image Library Utility
-
-
-
- In the example above, you can see that two .SIF files and a CGA
- Picture will be placed into a Library called MYLIB.SIL. Using
- the "__SCR_DISPLAY_SIL_FILE" function, you can now display the
- screens from that library file and the "CGA_DISPLAY_PIC_LIB"
- function can display the graphic picture.
-
- All the functions that display data from a library file require
- two linkage parameters. The first is the screen image library
- name. In the case of my example, you would specify
- "C:\COBOL\MYLIB.SIL". The second parameter is a screen number.
- As each file is added to the library it is assigned a screen
- number that starts sequentially at 1 and increments by one.
- Files are added to the library in the order you list them in the
- control file. In my example, there are three screens in the
- library assigned the numbers 1,2 and 3 in the order they were
- listed. So to display the SCREEN3.CGA file that is stored in
- the screen image library, you would use the following COBOL
- code:
-
- 01 WS-FILE-NAME PIC X(70) VALUE 'C:\COBOL\MYLIB.SIL'.
- 01 WS-SCR-NBR COMP PIC 9(02) VALUE 3.
- .
- .
- .
- CALL '__CGA_DISPLAY_PIC_LIB' USING WS-FILE-NAME
- WS-SCR-NBR.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2.