Interactive COBOL Notes 3.57 16-Mar-2007 Revision Information -------------------- **** Revision 3.57 **** Bug fixes in 3.57 ----------------- 1. In ICSORT when using line-sequential files, if the last record in an input file did not have a terminator then it would be ignored. 2. Under Windows, when using PTSMODE=paint with ICRUNW or ICRUNRC prints using printer pass thru (@PTS) could be double-spaced. 3. When using the two thinclients, ICRUNRC and ICTHINC, and connecting to yourself with your machine-name, the thinclients where incorrectly detecting it as a localhost connection. Althought very similar, linking to yourself is slightly different than localhost. To use localhost, either do NOT specify a remote machine or use the local host name. 4. In the Debugger, when trying to TYPE or DUMP a variable that has multiple subscripts, i.e. ARRAY-DATA (5 5), use only a space to delimit the subscripts. Using a comma will cause a syntax error. Changes and New features in 3.57 -------------------------------- 1. Under Windows, ICRUNW and ICRUNRC support Copy and Paste. The left mouse bottom can be held down to select text to be copied/printed. As the mouse is moved the selected text will be highlighted. In addition, the Shift-arrow keys can also be used to select text. Clicking the right mouse bottom will give a popup with selections of Copy/Print/Paste/Select all. Copy and Print are only available when data is currently selected. An Edit menu has been added with the same above menu selections as the right mouse bottom off the System Menu. When selected, Copy copies the selected area to the clipboard. When selected, Print prints the currently selected area. When selected, Paste copies the current clipboard data into the input buffer. When selected, Select all, selects the whole screen area. 2. When ICNETD starts a ThinClient surrogate (either ICRUNRS or ICTHINS), it will now pass the client's host name as an environment variable called ICREMOTEHOST. (Basically a "-E ICREMOTEHOST=xxxx" on the command line.) This can then be queried from COBOL by using the IC_GET_ENV builtin after determining that a ThinClient is running by doing an IC_TERM_STAT builtin and looking at the two ThinClient flags. The sample logon program has been updated to show this information in the upper left corner of the main screen, if available. The remote machine name will over ride the remote ip-address. 3. The IC_SEND_MAIL Builtin has been enhanced to support SMTP servers that require a validated username/password authorization. An additional parameter has been added that allows for the username/password to be specified in a comma separated list. The new syntax is: CALL "IC_SEND_MAIL" USING to-list, from-addr, cc-list, bcc-list, subject, message [ [, att-type, attachment] [, uname-pass]] Where the parameters are strings that hold: to-list address [, address]... (comma-separated list) from-addr address cc-list [address [, address]... ] (comma-separated list) bcc-list [address [, address]... ] (comma-separated list) subject subect-line message text-body-of-message (use to split lines) att-type mime type of file attached (optional) attachment filename of file to attach (req'd if att-type specified) uname-pass a username-password to pass as authorization to the SMTP server. password should be separated by a comma from username. All strings are trimmed of trailing blanks and a LOW_VALUE will terminate the string. The number of parameters are checked: at least one valid to-address is required, the from-address can not be blank and should be a valid address. cc-list, bcc-list, att-type, attachment, and uname-pass can be empty, subject cannot be blank, message can use to split lines and can be blank. If an att_type is specified, an attachment must be specified. If no att-type is specified, no attachment can be specified. Some valid mime-types are text, video, ... attachment must specify a valid file . The following additional messages have also been added. Addition messages for SMTP support: SMTP Authorization successful SMTP Authorization in progress SMTP Authorization required (A username/password is required) SMTP Authorization failed 4. The use of the thinclients, ICRUNRC and ICTHINC, has been enhanced with the ability to set console numbers via the client's host machine-name or ip-address. In the configuration of consoles you can now enter an ip-address, as "n.n.n.n" or a machine-name as the device. Then at runtime startup of the thin-client surrogate, either icrunrs or icthins, it will first check to see if a matching console entry with the client's machine-name is available, and next the client's ip-address before continuing with the current lookup. One note, on UNIX machines is that the machine-name is sought in a case-sensitive fashion and Windows machines pass an uppercase machine-name while UNIX machines pass a lowercase machine-name. On Windows, all lookups are case insensitive. 5. Under UNIX, the runtime and the character thin-client now support the PTS environment variable. When set, the PTS environment variable will be read whenever a Print-Pass-Thru operation is to be performed. Data will be directed to that particular device or file. This interception is done BEFORE the data is sent to the terminal device. For example: PTS=/dev/lp export PTS will cause any print-pass thru data to be sent to the printer at /dev/lp. 6. ICSP2 and ICQPR have been updated. Please see the READSP2.TXT file for more information. **** Revision 3.56 **** Bug fixes in 3.56 ----------------- 1. When using the IC_SEND_MAIL builtin and having the info switch set, the runtime could core dump. 2. ICREORG, when using line-sequential input files was ignoring the last line if no terminator was provided. Changes and New features in 3.56 -------------------------------- 1. Filenames can now contain the "(" and ")" characters. (reguired to support x64 Editions correctly) 2. Under Windows, ICINFO has been updated to detect Intel multi-core processors. Use the -G z flag. ICINFO has also been updated to detect the registry setting "EnableOpLockForceClose". When set to 1, this flag seems to cause file corruption of ISAM files. 3. Update to Thin Client (gui) and ICSP2 including an updated SP2 Manual (4.1.127). See readsp2.txt for more information. 4. Under Windows, the Sentinel Driver has been updated to 7.3.2 for 32-bit Windows. For Windows x64 Editions, a 64-bit Sentinel Driver (7.2.2) is provided. 5. Under Windows, the installer will detect Windows x64 Editions and attempt to handle the Microsoft installation redirections. 6. The IC_WINDOWS_SETFONT builtin has been enhanced: No parameters can be specified, allowing the Windows ChooseFont Dialog box to be shown. The user can select font, style, and size from the list shown. 7. Under Windows, ICRUNW and ICRUNRC have an enhanced System menu (i.e., the menu you get when you right-click on the Title bar) New selections include: Font, Compress, Select printer, Printer font, and About. - - - - - Font brings up the ChooseFont dialog box to allow the screen font, style, and size to be changed. Compress toggles between compressed and non-compressed mode if available, otherwise it will be greyed out. In compress mode, a check-mark will be displayed. Select printer provides the ability to select the Windows printer used for printer pass thru (@PTS). Printer font selects the font, style, and size for the currently selected printer. This implies paint mode. About shows the current revision of ICRUNW or ICRUNRC along with the currently selected printer and font. The Close selection will not be displayed if the No close switch (-N x), was specified. With these new printer selections, Select printer and Printer font, it now makes sense to set PTSMODE to paint and leave the remaining variables (PTS, PTSFONT, PTSFONTSIZE) unset. This allows the user to change all the settings. End of Notes