User Defined Transactions Create a List in HTML Format |
The SimoTime Home Page |
This program (CV80ALAR.cbl) is one in a series of programs that will convert the file format and record content for files with records containing 80 byte logical records. These files are commonly referred to as card files or control files. This reference is based on an historical beginning that used 80 column cards and small decks of cards that contained control information. This information was used to determine the behavior of a utility program or user written program.
WIP
WIP
The CICSŪ system definition utility program, DFHCSDUP, is a component of resource definition online (RDO). You can use the DFHCSDUP offline utility program to read from and write to a CICS system definition (CSD) file, either while CICS is running or while it is inactive.
Extract data from the CSD and pass it to a user program for processing
Additional information about this program may be obtained by sending an e-mail to: helpdesk@simotime.com
We have made a significant effort to ensure the documents and software technologies are correct and accurate. We reserve the right to make changes without notice at any time. The function delivered in this version is based upon the enhancement requests from a specific group of users. The intent is to provide changes as the need arises and in a timeframe that is dependent upon the availability of resources.
Copyright © 1987-2018
SimoTime Technologies and Services
All Rights Reserved
This program will convert an ASCII-encoded, Line Sequential file of 80-byte logical records to an ASCII-encoded, Record Sequential file of 80-byte, fixed-length physical records.
The CV80ALAR program reads a Line Sequential File (GETLS080) and writes to a Record Sequential File (PUTRS080). Prior to executing the program the logical file names used in the program should be mapped to the actual physical file names,
Note: The file format is changed from Line Sequential to Record Sequential with trailing space characters. The logical record content is not changed. The ASCII encoding is maintained.
The following (ALAR80E1.cmd) is a sample command file that uses two "SET" statements to map the file names and then runs the CV80ALAR program.
@echo OFF rem * ************************************************************************ rem * ALAR80E1.cmd - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2018 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ************************************************************************ rem * This procedure will perform the following conversion for a single file. rem * 1. Read an ASCII-encoded, Line Sequential file having variable-length rem * records with a maximum record length of eighty-bytes. rem * 2. Write an ASCII-encoded, Record Sequential file having eighty-byte, rem * fixed-length records. rem * ************************************************************************ rem * This procedure calls the following Windows Command Files or Programs. rem * 1. ENV1BASE.cmd - this provides a single point for setting commonly rem * used environment variables. rem * 2. SIMONOTE.cmd - this provides a consistent process for displaying rem * messages to the screen and writing to a journal or log file. rem * 3. RUN CV80ALAR - For the specified file perform the following actions. rem * - Do the file format conversion between Line Sequential rem * and Record Sequential. rem * - Leave the records in their ASCII-encoded content. rem * ************************************************************************ set CmdName=ALAR80E1 call ..\ENV1BASE %CmdName% rem * call SIMONOTE "*******************************************************%CmdName%.cmd" call SIMONOTE "Starting JobName %CmdName%.cmd" rem * set GETLS080=%BaseLib1%\DATA\Txt1\LSEQ0080.TXT set PUTRS080=%BaseLib1%\DATA\Wrk1\SIMOTIME.DATA.QSAM0080.DAT call SIMONOTE "DataTAKE is %GETLS080%" call SIMONOTE "DataMAKE is %PUTRS080%" if exist %PUTRS080% erase %PUTRS080% run CV80ALAR if not "%ERRORLEVEL%" == "0" set JobStatus=0010 if not "%JobStatus%" == "0000" goto :EojNOK if not exist %PUTRS080% set JobStatus=0035 if not "%JobStatus%" == "0000" goto :EojNOK goto EojAok :EojAOK call SIMONOTE "Finished CmdName %CmdName%, Job Status is %JobStatus%" goto :End :EojNOK call SIMONOTE "ABENDING CmdName %CmdName%, Job Status is %JobStatus%" echo %DATE% - %TIME% Starting User ABEND Processing...>>%SYSLOG% set >>%SYSLOG% echo %DATE% - %TIME% Complete User ABEND Processing...>>%SYSLOG% goto :End :End call SIMONOTE "Conclude SysOut is %SYSOUT%" if not "%1" == "nopause" pause exit /B %JobStatus%
The following (CV80ALAR.cbl) is the COBOL Source Code.
IDENTIFICATION DIVISION. PROGRAM-ID. CV80ALAR. AUTHOR. SIMOTIME TECHNOLOGIES. ***************************************************************** * This program was generated by SimoZAPS * * A product of SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * * * * Generation Date: 2014-12-01 Generation Time: 14:36:43:35 * * * * Record Record Key * * Function Name Organization Format Max-Min Pos-Len * * PRIMARY GETLS080 ASCII/CRLF VARIABLE 00080 * * * * SECONDARY PUTRS080 SEQUENTIAL FIXED 00080 * * * * * ***************************************************************** ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT GETLS080-FILE ASSIGN TO GETLS080 ORGANIZATION IS LINE SEQUENTIAL ACCESS MODE IS SEQUENTIAL FILE STATUS IS GETLS080-STATUS. SELECT PUTRS080-FILE ASSIGN TO PUTRS080 ORGANIZATION IS SEQUENTIAL ACCESS MODE IS SEQUENTIAL FILE STATUS IS PUTRS080-STATUS. ***************************************************************** DATA DIVISION. FILE SECTION. FD GETLS080-FILE DATA RECORD IS GETLS080-REC . 01 GETLS080-REC. 05 GETLS080-DATA-01 PIC X(00080). FD PUTRS080-FILE DATA RECORD IS PUTRS080-REC . 01 PUTRS080-REC. 05 PUTRS080-DATA-01 PIC X(00080). ***************************************************************** * This program was created with the SYSMASK1.TXT file as input. * * The SYSMASK1 provides for the sequential reading of the input * * file and the sequential writing of the output file. * * * * If the output file is indexed then the input file must be in * * sequence by the field that will be used to provide the key * * for the output file. This is a sequential load process. * * * * If the key field is not in sequence then refer to SYSMASK2 * * to provide for a random add or update of the indexed file. * * * * This program mask will have the ASCII/EBCDIC table inserted * * for use by the /TRANSLATE function of SimoZAPS. * * * * For additional information contact SimoTime Technologies. * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** WORKING-STORAGE SECTION. 01 SIM-TITLE. 05 T1 pic X(11) value '* CV80ALAR '. 05 T2 pic X(34) value 'Convert ASCII LS80 to ASCII RS80 '. 05 T3 pic X(10) value ' v15.10.31'. 05 T4 pic X(24) value ' helpdesk@simotime.com'. 01 SIM-COPYRIGHT. 05 C1 pic X(11) value '* CV80ALAR '. 05 C2 pic X(32) value 'This Data File Convert Member wa'. 05 C3 pic X(32) value 's generated by SimoTime Technolo'. 05 C4 pic X(04) value 'gies'. 01 GETLS080-STATUS. 05 GETLS080-STATUS-L pic X. 05 GETLS080-STATUS-R pic X. 01 GETLS080-EOF pic X value 'N'. 01 GETLS080-OPEN-FLAG pic X value 'C'. 01 PUTRS080-STATUS. 05 PUTRS080-STATUS-L pic X. 05 PUTRS080-STATUS-R pic X. 01 PUTRS080-EOF pic X value 'N'. 01 PUTRS080-OPEN-FLAG pic X value 'C'. 01 GETLS080-LRECL pic 9(5) value 00080. 01 PUTRS080-LRECL pic 9(5) value 00080. 01 GETLS080-LRECL-MAX pic 9(5) value 00080. ***************************************************************** * The following buffers are used to create a four-byte status * * code that may be displayed. * ***************************************************************** 01 IO-STATUS. 05 IO-STAT1 pic X. 05 IO-STAT2 pic X. 01 IO-STATUS-04. 05 IO-STATUS-0401 pic 9 value 0. 05 IO-STATUS-0403 pic 999 value 0. 01 TWO-BYTES-BINARY pic 9(4) BINARY. 01 TWO-BYTES-ALPHA redefines TWO-BYTES-BINARY. 05 TWO-BYTES-LEFT pic X. 05 TWO-BYTES-RIGHT pic X. ***************************************************************** * Message Buffer used by the Z-DISPLAY-MESSAGE-TEXT routine. * ***************************************************************** 01 MESSAGE-BUFFER. 05 MESSAGE-HEADER pic X(11) value '* CV80ALAR '. 05 MESSAGE-TEXT. 10 MESSAGE-TEXT-1 pic X(68) value SPACES. 10 MESSAGE-TEXT-2 pic X(188) value SPACES. ***************************************************************** 01 PROGRAM-NAME pic X(8) value 'CV80ALAR'. 01 INFO-STATEMENT. 05 INFO-SHORT. 10 INFO-ID pic X(8) value 'Starting'. 10 filler pic X(2) value ', '. 10 filler pic X(34) value 'Convert ASCII LS80 to ASCII RS80 '. 05 filler pic X(24) value ' http://www.SimoTime.com'. 01 APPL-RESULT pic S9(9) comp. 88 APPL-AOK value 0. 88 APPL-EOF value 16. 01 WRITE-FLAG pic X value 'Y'. 01 GETLS080-TOTAL. 05 GETLS080-RDR pic 9(9) value 0. 05 filler pic X(3) value ' - '. 05 filler pic X(23) value 'Line count for GETLS080'. 01 PUTRS080-TOTAL. 05 PUTRS080-ADD pic 9(9) value 0. 05 filler pic X(3) value ' - '. 05 filler pic X(23) value 'Line count for PUTRS080'. ***************************************************************** PROCEDURE DIVISION. move all '*' to MESSAGE-TEXT-1 perform Z-DISPLAY-MESSAGE-TEXT move INFO-STATEMENT to MESSAGE-TEXT-1 perform Z-DISPLAY-MESSAGE-TEXT move all '*' to MESSAGE-TEXT-1 perform Z-DISPLAY-MESSAGE-TEXT perform Z-POST-COPYRIGHT perform GETLS080-OPEN perform PUTRS080-OPEN perform until GETLS080-STATUS not = '00' perform GETLS080-READ if GETLS080-STATUS = '00' add 1 to GETLS080-RDR perform BUILD-OUTPUT-RECORD if WRITE-FLAG = 'Y' perform PUTRS080-WRITE if PUTRS080-STATUS = '00' add 1 to PUTRS080-ADD end-if end-if end-if end-perform * USREOJ Processing not specified... move GETLS080-TOTAL to MESSAGE-TEXT perform Z-DISPLAY-MESSAGE-TEXT move PUTRS080-TOTAL to MESSAGE-TEXT perform Z-DISPLAY-MESSAGE-TEXT if APPL-EOF move 'Complete' to INFO-ID else move 'ABENDING' to INFO-ID end-if move INFO-STATEMENT to MESSAGE-TEXT(1:79) perform Z-DISPLAY-MESSAGE-TEXT perform PUTRS080-CLOSE perform GETLS080-CLOSE GOBACK. ***************************************************************** BUILD-OUTPUT-RECORD. * TransINIT process... move ALL X'20' to PUTRS080-REC * TransCOPY... move GETLS080-REC(00001:00080) to PUTRS080-REC(00001:00080) exit. ***************************************************************** * I/O Routines for the INPUT File... * ***************************************************************** GETLS080-CLOSE. add 8 to ZERO giving APPL-RESULT. close GETLS080-FILE if GETLS080-STATUS = '00' subtract APPL-RESULT from APPL-RESULT else add 12 to ZERO giving APPL-RESULT end-if if APPL-AOK CONTINUE else move 'CLOSE Failure with GETLS080' to MESSAGE-TEXT perform Z-DISPLAY-MESSAGE-TEXT move GETLS080-STATUS to IO-STATUS perform Z-DISPLAY-IO-STATUS perform Z-ABEND-PROGRAM end-if exit. *---------------------------------------------------------------* GETLS080-READ. read GETLS080-FILE if GETLS080-STATUS = '00' subtract APPL-RESULT from APPL-RESULT else if GETLS080-STATUS = '10' add 16 to ZERO giving APPL-RESULT else add 12 to ZERO giving APPL-RESULT end-if end-if if APPL-AOK CONTINUE else if APPL-EOF move 'Y' to GETLS080-EOF else move 'READ Failure with GETLS080' to MESSAGE-TEXT perform Z-DISPLAY-MESSAGE-TEXT move GETLS080-STATUS to IO-STATUS perform Z-DISPLAY-IO-STATUS perform Z-ABEND-PROGRAM end-if end-if exit. *---------------------------------------------------------------* GETLS080-OPEN. add 8 to ZERO giving APPL-RESULT. open input GETLS080-FILE if GETLS080-STATUS = '00' subtract APPL-RESULT from APPL-RESULT move 'O' to GETLS080-OPEN-FLAG else add 12 to ZERO giving APPL-RESULT end-if if APPL-AOK CONTINUE else move 'OPEN Failure with GETLS080' to MESSAGE-TEXT perform Z-DISPLAY-MESSAGE-TEXT move GETLS080-STATUS to IO-STATUS perform Z-DISPLAY-IO-STATUS perform Z-ABEND-PROGRAM end-if exit. ***************************************************************** * I/O Routines for the OUTPUT File... * ***************************************************************** PUTRS080-WRITE. if PUTRS080-OPEN-FLAG = 'C' perform PUTRS080-OPEN end-if write PUTRS080-REC if PUTRS080-STATUS = '00' subtract APPL-RESULT from APPL-RESULT else if PUTRS080-STATUS = '10' add 16 to ZERO giving APPL-RESULT else add 12 to ZERO giving APPL-RESULT end-if end-if. if APPL-AOK CONTINUE else move 'WRITE Failure with PUTRS080' to MESSAGE-TEXT perform Z-DISPLAY-MESSAGE-TEXT move PUTRS080-STATUS to IO-STATUS perform Z-DISPLAY-IO-STATUS perform Z-ABEND-PROGRAM end-if exit. *---------------------------------------------------------------* PUTRS080-OPEN. add 8 to ZERO giving APPL-RESULT. open OUTPUT PUTRS080-FILE if PUTRS080-STATUS = '00' subtract APPL-RESULT from APPL-RESULT move 'O' to PUTRS080-OPEN-FLAG else add 12 to ZERO giving APPL-RESULT end-if if APPL-AOK CONTINUE else move 'OPEN Failure with PUTRS080' to MESSAGE-TEXT perform Z-DISPLAY-MESSAGE-TEXT move PUTRS080-STATUS to IO-STATUS perform Z-DISPLAY-IO-STATUS perform Z-ABEND-PROGRAM end-if exit. *---------------------------------------------------------------* PUTRS080-CLOSE. add 8 to ZERO giving APPL-RESULT. close PUTRS080-FILE if PUTRS080-STATUS = '00' subtract APPL-RESULT from APPL-RESULT move 'C' to PUTRS080-OPEN-FLAG else add 12 to ZERO giving APPL-RESULT end-if if APPL-AOK CONTINUE else move 'CLOSE Failure with PUTRS080' to MESSAGE-TEXT perform Z-DISPLAY-MESSAGE-TEXT move PUTRS080-STATUS to IO-STATUS perform Z-DISPLAY-IO-STATUS perform Z-ABEND-PROGRAM end-if exit. ***************************************************************** * The following Z-ROUTINES provide administrative functions * * for this program. * ***************************************************************** * ABEND the program, post a message to the console and issue * * a STOP RUN. * ***************************************************************** Z-ABEND-PROGRAM. if MESSAGE-TEXT not = SPACES perform Z-DISPLAY-MESSAGE-TEXT end-if move 'PROGRAM-IS-ABENDING...' to MESSAGE-TEXT perform Z-DISPLAY-MESSAGE-TEXT add 12 to ZERO giving RETURN-CODE STOP RUN. * exit. ***************************************************************** * Display CONSOLE messages... * ***************************************************************** Z-DISPLAY-MESSAGE-TEXT. if MESSAGE-TEXT-2 = SPACES display MESSAGE-BUFFER(1:79) else display MESSAGE-BUFFER end-if move all SPACES to MESSAGE-TEXT exit. ***************************************************************** * Display the file status bytes. This routine will display as * * four digits. If the full two byte file status is numeric it * * will display as 00nn. If the 1st byte is a numeric nine (9) * * the second byte will be treated as a binary number and will * * display as 9nnn. * ***************************************************************** Z-DISPLAY-IO-STATUS. if IO-STATUS not NUMERIC or IO-STAT1 = '9' move IO-STAT1 to IO-STATUS-04(1:1) subtract TWO-BYTES-BINARY from TWO-BYTES-BINARY move IO-STAT2 to TWO-BYTES-RIGHT add TWO-BYTES-BINARY to ZERO giving IO-STATUS-0403 move 'File Status is: nnnn' to MESSAGE-TEXT move IO-STATUS-04 to MESSAGE-TEXT(17:4) perform Z-DISPLAY-MESSAGE-TEXT else move '0000' to IO-STATUS-04 move IO-STATUS to IO-STATUS-04(3:2) move 'File Status is: nnnn' to MESSAGE-TEXT move IO-STATUS-04 to MESSAGE-TEXT(17:4) perform Z-DISPLAY-MESSAGE-TEXT end-if exit. ***************************************************************** Z-POST-COPYRIGHT. display SIM-TITLE display SIM-COPYRIGHT exit. ***************************************************************** * This program was generated by SimoZAPS * * A product of SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * * * * Generation Date: 2014-12-01 Generation Time: 14:36:43:37 * *****************************************************************
This job will convert an ASCII-encoded, Line Sequential file of 80-byte logical records to an ASCII-encoded, Record Sequential file of 80-byte, fixed-length physical records. This document may be used to assist as a tutorial for new programmers or as a quick reference for experienced programmers.
In the world of programming there are many ways to solve a problem. This document and the links to other documents are intended to provide a greater awareness of the Data Management and Application Processing alternatives.
The documentation and software were developed and tested on systems that are configured for a SIMOTIME environment based on the hardware, operating systems, user requirements and security requirements. Therefore, adjustments may be needed to execute the jobs and programs when transferred to a system of a different architecture or configuration.
SIMOTIME Services has experience in moving or sharing data or application processing across a variety of systems. For additional information about SIMOTIME Services or Technologies please send an e-mail to: helpdesk@simotime.com or call 415 883-6565. We appreciate hearing from you.
Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Technologies. Once the fee is received by SimoTime the latest version of the software, documentation or training material will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Technologies.
SimoTime Technologies makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any expressed or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Technologies shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software, documentation or training material.
This section includes links to documents with additional information that are beyond the scope and purpose of this document. The first sub-section requires an internet connection, the second sub-section references locally available documents.
Note: A SimoTime License is required for the items to be made available on a local server.
The following links may be to the current server or to the Internet.
Explore The ASCII and EBCDIC Translation Tables. These tables are provided for individuals that need to better understand the bit structures and differences of the encoding formats.
Explore The File Status Return Codes to interpret the results of accessing VSAM data sets and/or QSAM files.
The following links will require an internet connect.
You may view the download list of the SimoTime shared modules at http://www.simotime.com/sim4dzip.htm#groupSHARED.
Explore an Extended List of Software Technologies that are available for review and evaluation. The software technologies (or Z-Packs) provide individual programming examples, documentation and test data files in a single package. The Z-Packs are usually in zip format to reduce the amount of time to download.
A good place to start is The SimoTime Home Page for access to white papers, program examples and product information. This link requires an Internet Connection
Explore The Micro Focus Web Site for more information about products and services available from Micro Focus. This link requires an Internet Connection.
Explore the Glossary of Terms for a list of terms and definitions used in this suite of documents and white papers.
This document was created and is copyrighted and maintained by SimoTime Technologies.
If you have any questions, suggestions, comments or feedback please call or send an e-mail to: helpdesk@simotime.com
We appreciate hearing from you.
SIMOTIME Technologies was founded in 1987 and is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. Our customers include small businesses using Internet technologies to corporations using very large mainframe systems.
Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems. We specialize in preparing applications and the associated data that are currently residing on a single platform to be distributed across a variety of platforms.
Preparing the application programs will require the transfer of source members that will be compiled and deployed on the target platform. The data will need to be transferred between the systems and may need to be converted and validated at various stages within the process. SIMOTIME has the technology, services and experience to assist in the application and data management tasks involved with doing business in a multi-system environment.
Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions or need assistance with converting non-relational data structures simply give us a call at 415 883-6565 or check the web site at http://www.simotime.com
Return-to-Top |
User Defined Transactions, Create a List |
Copyright © 1987-2018 SimoTime Technologies and Services All Rights Reserved |
When technology complements business |
http://www.simotime.com |