Program Control Table Extract PCT Entries from DFHDRDAT |
The SimoTime Home Page |
The resources used by the Micro Focus Enterprise Server, Mainframe Subsystem Support (or ES/MSS) are stored in the resource definitions file (DFHDRDAT). This file is a Micro Focus Key-Sequenced-Data-Set. This utility program provides a batch access to get the Program Control Table (PCT) and post this information into an ASCII/Text file.
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-2025
SimoTime Technologies and Services
All Rights Reserved
This example illustrates the following functions.
| ||||
Programming Objectives |
Getting information from the PCT to a CSV file is a three step process within a single Windows Command File. The 1st Step does the preparation work by setting the environment and deleting any work files left by a previous execution.
The 2nd step uses the Micro Focus supplied utility program to extract information from the DFHDRDAT file and place it into an ASCII/Text file in a standard format that may be used to import the information into another CICS System. The following shows the command line syntax for the Micro Focus utility program. The value of %RDTFILE2% is the location and name of the output file.
c:\> casrdtex /o%RDTFILE2% /gSIMOGRPA /x /e /ip"c:\SimoSam1\sysliba1".
The following shows an example of the output for a single PCT entry produced by the Micro Focus utility program.
DEFINE TRANSACTION(OPT1) GROUP(SIMOGRPA) DESCRIPTION(Menu Transaction for File Management) PROGRAM(MN1FMS) TWASIZE(0) STATUS(ENABLED) DYNAMIC(NO) PRIORITY(0) DTIMOUT(65534) INDOUBT(BACKOUT) DUMP(NO) TRACE(YES) RESSEC(NO) CMDSEC(NO) TRANSEC(01) _SCREEN(ALTERNATE) _UCTRAN(YES) _INBOUNDTP(NO)
The 3rd step uses a SimoTime utility program that reads the output of the 2nd step and writes the information to a CSV file that may be easily imported into an Excel spread sheet. The following shows an example of the output produced by the 3rd step.
TRAN,AF01,MN1ADV ,"Advanced Functions" , TRAN,AMIM,CI2INQ ,"IMS Data Base Management" , TRAN,AMSQ,MN1SQL ,"Menu for Relational Data Management" , TRAN,AMUP,MN1UTL ,"Application and Data Management Utility Programs" , TRAN,ANSO,ZPOZPPR ,"Load a Table" , TRAN,APU1,AP2UPD ,"Application Properties Repository" , TRAN,CHU1,CQHOLD ,"View and Update the Customer Secondary DataBase" , TRAN,CII1,CI2INQ ,"Customer Inquiry to IMS Data Base" , TRAN,CQU1,CQ2UPD ,"Access DB with View, Update and Insert" , TRAN,CUD1,CUDUMP ,"Customer File Dump" , TRAN,CUI1,CU2INQ ,"Customer File Inquiry by Record" , TRAN,CUM1,CUMEND ,"Record Patch for Customer File" , TRAN,CUU1,CU2UPD ,"Customer File Update by Record" , TRAN,FPU1,FP2UPD ,"File Properties Repository" , TRAN,FSC1,FILERC ,"File Status Codes" , TRAN,ITI1,IT2INQ ,"Item File Inquiry by Record" , TRAN,ITU1,IT2UPD ,"Item File Update by Record" , TRAN,JRDR,CCSJCLC1,"Submit a Job to the INTRDR" , TRAN,MM01,MN1APP ,"Main Menu with Links to sub-Menu Screens" , TRAN,OPT1,MN1FMS ,"Menu for File and VSAM Access" , TRAN,UTX1,UTXCTL ,"User Transaction Control" , TRAN,UTX8,UTXCT8 ,"User Transaction Control - Invoke" , TRAN,UTX9,UTXCT9 ,"User Transaction Control - Revoke" , TRAN,WT30,WAIT30 ,"Transaction with a 30 second wait" , TRAN,WTL1,WTL128 ,"Write to ESDS Log File" ,
WIP... we plan to add additional information to the CSV File and provide an HTML Format as user documentation.
This suite of samples programs will run on the following platforms.
| ||||
Programming Requirements |
The following is a flowchart of the job for executing the programs that will extract PCT information from the Micro Focus online configuration file (DFHDRDAT).
Step 4 of the preceding flow chart uses the Micro Focus supplied utility program (CASRDTEX) to extract the PCT information from the resource definition file. This information is then processed in step 5 by a utility program that places PCT information into an ASCII/Text file with CSV formatted records. This file may be viewed with a standard text editor or easily imported into an Excel spreadsheet. CMD for Batch ExecutionThe following (CSDPCTE1.cmd) is a sample of the Windows CMD needed to run this job. @echo OFF rem * ******************************************************************* rem * CSDPCTE1.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2019 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Glance at the CSD Information for PCTs. rem * Author - SimoTime Technologies rem * Date - January 24, 2006 rem * rem * The 1st step will Prepare the environment. rem * rem * The 2nd step will extract PCT information from DFHDRDAT. rem * rem * The 3rd step will post PCT information to a CSV File. rem * rem * ******************************************************************* rem * Step 1 of 3, Prepare the environment... rem * set CmdName=CSDPCTE1 call ..\Env1BASE %CmdName% set JobStatus=0000 if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting JobName %CmdName%, User is %USERNAME%" call SimoNOTE "Identify JobStep DeleteQSAM" set RDTFILE2=%BaseLib1%\CSD\SIMOTIME.PCT.RDTFILE2.TXT if exist %RDTFILE2% del %RDTFILE2% rem * rem * ******************************************************************* rem * Step 2 of 3, Get PCT Information from RDO File... rem * casrdtex /o%RDTFILE2% /gSIMOGRPA /x /e /ip"C:\SIMOSAM1\DEVL\SYS1\CONFIG" rem * if exist %RDTFILE2% goto :PostToCSV set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* rem * Step 3 of 3, Post PCT Information to a CSV File... rem * :PostToCSV set CSDGETD1=%RDTFILE2% set CSDPUTD1=%BaseLib1%\CSD\SIMOTIME.PCT.SIMOCICA.CSV run CSDPCTC1 rem * rem * ******************************************************************* rem * :EojAok call SimoNOTE "Produced %CSDPUTD1%" call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End call SimoNOTE "Conclude SysLog is %SYSLOG%" if not "%1" == "nopause" pause The COBOL Utility ProgramThe following (CSDPCTC1.cbl) is the COBOL program that will post the PCT information to a CSV File. This is a Work-In-Progress, contact SimoTime for additional information. SummaryThis utility program provides a batch access to get the PCT information in the Micro Focus Resource Definition File (DFHDRDAT) and post the information into an ASCII/Text file. The 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 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 contact us using the information in the Contact or Feedback section of this document.
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. Downloads and LinksThis section includes links to documents with additional information that are beyond the scope and purpose of this document. The first group of documents may be available from a local system or via an internet connection, the second group of documents will require an internet connection. Note: A SimoTime License is required for the items to be made available on a local system or server. Current Server or Internet AccessThe following links may be to the current server or to the Internet. Explore the CICS Connection for more examples of mainframe CICS coding techniques and sample code. Explore the COBOL Connection for more examples of COBOL programming techniques and sample code. 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 that are used to interpret the results of accessing VSAM data sets and/or QSAM files. Internet Access RequiredThe following links will require an internet connect. This suite of programs and documentation is available for download. Link to an Evaluation zPAK Option that includes the program members, documentation and control files. 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 (including Micro Focus COBOL) and services available from Micro Focus. This link requires an Internet Connection. Glossary of TermsExplore the Glossary of Terms for a list of terms and definitions used in this suite of documents and white papers. Contact or FeedbackThis document was created and is maintained by SimoTime Technologies. If you have any questions, suggestions, comments or feedback please use the following contact information.
We appreciate hearing from you. Company OverviewSimoTime 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 simply give us a call or check the web site at http://www.simotime.com
|