File Control Table Extract FCT Entries from DFHDRDAT |
The SimoTime Home Page |
The resources used by the Micro Focus Enterprise Server, Mainframe Subsystem Support (or ES/MSS) is 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 File Control Table (FCT) 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 FCT 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 %RDTLSEQ1% is the location and name of the output file.
C:\SIMOSAM1\DEVL\LOADLIB>casrdtex /o%RDTFILE2% /gSIMOGRPA /f /e /ip"c:\SimoSam1\DEVL\sys1\CONFIG"
The following shows an example of the output for the FCT entries produced by the Micro Focus utility program.
DEFINE FILE(APMASTER) GROUP(SIMOGRPA) DESCRIPTION(Application Properties) DSNAME(SIMOTIME.UTIL.APMASTER) STATUS(ENABLED) OPENTIME(FIRSTREF) RECORDFORMAT(F) ADD(YES) BROWSE(YES) _EXCLUSIVE(NO) DELETE(YES) READ(YES) UPDATE(YES) RECOVERY(BACKOUTONLY) _FILETYPE(KSDS) _MAXRECLEN(0) _MINRECLEN(0) _KEYPOSITION(0) _KEYLENGTH(0) _STARTEMPTY(NO) _DUPKEY(NO) _FILEEXT(DAT) _USECATALOG(YES) _COLLSEQ(ASCII) DEFINE FILE(CUSTMAST) GROUP(SIMOGRPA) DESCRIPTION(Customer Master, File Control Table) STATUS(ENABLED) OPENTIME(STARTUP) RECORDFORMAT(F) ADD(YES) BROWSE(YES) _EXCLUSIVE(NO) DELETE(NO) READ(YES) UPDATE(YES) RECOVERY(BACKOUTONLY) _FILETYPE(KSDS) _MAXRECLEN(512) _MINRECLEN(512) _KEYPOSITION(1) _KEYLENGTH(12) _STARTEMPTY(NO) _DUPKEY(NO) _PATH(C:\SIMOSAM1\DEVL\DATA\APPL) _FILENAME(SIMOTIME.DATA.CUSTMAST) _FILEEXT(DAT) _USECATALOG(NO) _COLLSEQ(ASCII) DEFINE FILE(ESDSC01K) GROUP(SIMOGRPA) DESCRIPTION(ESDS FILE 1024 Byte Records) DSNAME(SIMOTIME.ESDS.ESDSC01K) STATUS(ENABLED) OPENTIME(STARTUP) RECORDFORMAT(F) ADD(YES) BROWSE(YES) _EXCLUSIVE(NO) DELETE(YES) READ(YES) UPDATE(YES) RECOVERY(BACKOUTONLY) _FILETYPE(KSDS) _MAXRECLEN(0) _MINRECLEN(0) _KEYPOSITION(0) _KEYLENGTH(0) _STARTEMPTY(NO) _DUPKEY(NO) _FILEEXT(DAT) _USECATALOG(YES) _COLLSEQ(ASCII) DEFINE FILE(ESDSC128) GROUP(SIMOGRPA) DESCRIPTION(ESDS FILE 128 Byte Records) STATUS(ENABLED) OPENTIME(STARTUP) RECORDFORMAT(V) ADD(YES) BROWSE(YES) _EXCLUSIVE(NO) DELETE(NO) READ(YES) UPDATE(YES) RECOVERY(NONE) _FILETYPE(ESDS) _MAXRECLEN(128) _MINRECLEN(1) _STARTEMPTY(NO) _DUPKEY(NO) _PATH(C:\SIMOSAM1\DEVL\DATA\APPL) _FILENAME(SIMOTIME.ESDS.ESDSC128) _FILEEXT(DAT) _FILEFORMAT(MICROFOCUS) _USECATALOG(NO) _COLLSEQ(ASCII) DEFINE FILE(ESDSC350) GROUP(SIMOGRPA) DESCRIPTION(VSAM ESDS with 350 Byte Records) DSNAME(SIMOTIME.ESDS.ESDSC350) STATUS(ENABLED) OPENTIME(STARTUP) RECORDFORMAT(F) ADD(YES) BROWSE(YES) _EXCLUSIVE(NO) DELETE(YES) READ(YES) UPDATE(YES) RECOVERY(BACKOUTONLY) _FILETYPE(KSDS) _MAXRECLEN(0) _MINRECLEN(0) _KEYPOSITION(0) _KEYLENGTH(0) _STARTEMPTY(NO) _DUPKEY(NO) _FILEEXT(DAT) _USECATALOG(YES) _COLLSEQ(ASCII) DEFINE FILE(EZACONFG) GROUP(SIMOGRPA) DESCRIPTION(EZA SOKET Configuration File) STATUS(ENABLED) OPENTIME(FIRSTREF) RECORDFORMAT(V) ADD(YES) BROWSE(YES) _EXCLUSIVE(NO) DELETE(YES) READ(YES) UPDATE(YES) RECOVERY(BACKOUTONLY) _FILETYPE(KSDS) _MAXRECLEN(150) _MINRECLEN(16) _KEYPOSITION(1) _KEYLENGTH(16) _STARTEMPTY(NO) _DUPKEY(NO) _PATH(C:\SIMOSAM1\DEVL\SYS1\CONFIG) _FILENAME(EZACONFG) _FILEEXT(DAT) _USECATALOG(NO) _COLLSEQ(EBCDIC) DEFINE FILE(FPMASTER) GROUP(SIMOGRPA) DESCRIPTION(File Properties, Data File Information) DSNAME(SIMOTIME.UTIL.FPMASTER) STATUS(ENABLED) OPENTIME(FIRSTREF) RECORDFORMAT(F) ADD(YES) BROWSE(YES) _EXCLUSIVE(NO) DELETE(YES) READ(YES) UPDATE(YES) RECOVERY(BACKOUTONLY) _FILETYPE(KSDS) _MAXRECLEN(1024) _MINRECLEN(1024) _KEYPOSITION(0) _KEYLENGTH(4) _STARTEMPTY(NO) _DUPKEY(NO) _PATH(C:\SIMOSAM1\DEVL\DATA\APPL) _FILEEXT(DAT) _USECATALOG(YES) _COLLSEQ(ASCII) DEFINE FILE(ITEMMAST) GROUP(SIMOGRPA) DESCRIPTION(Item Master, File Control Table) DSNAME(SIMOTIME.DATA.ITEMMAST) STATUS(ENABLED) OPENTIME(STARTUP) RECORDFORMAT(F) ADD(YES) BROWSE(YES) _EXCLUSIVE(NO) DELETE(YES) READ(YES) UPDATE(YES) RECOVERY(BACKOUTONLY) _FILETYPE(KSDS) _MAXRECLEN(0) _MINRECLEN(0) _KEYPOSITION(0) _KEYLENGTH(0) _STARTEMPTY(NO) _DUPKEY(NO) _FILEEXT(DAT) _USECATALOG(YES) _COLLSEQ(ASCII) DEFINE FILE(MSGXKSDS) GROUP(SIMOGRPA) DESCRIPTION(File Status Codes with Brief Description) STATUS(ENABLED) OPENTIME(FIRSTREF) RECORDFORMAT(F) ADD(YES) BROWSE(YES) _EXCLUSIVE(NO) DELETE(YES) READ(YES) UPDATE(YES) RECOVERY(BACKOUTONLY) _FILETYPE(KSDS) _MAXRECLEN(0) _MINRECLEN(0) _KEYPOSITION(0) _KEYLENGTH(0) _STARTEMPTY(NO) _DUPKEY(NO) _PATH(C:\SIMOSAM1\DEVL\DATA\APPL\) _FILENAME(SIMOTIME.UTIL.MSGXKSDS) _FILEEXT(DAT) _USECATALOG(NO) _COLLSEQ(ASCII) DEFINE FILE(UTXCTLD1) GROUP(SIMOGRPA) DESCRIPTION(User Transaction Control) DSNAME(SIMOTIME.DATA.UTXCTLD1) STATUS(ENABLED) OPENTIME(FIRSTREF) RECORDFORMAT(F) ADD(YES) BROWSE(YES) _EXCLUSIVE(NO) DELETE(YES) READ(YES) UPDATE(YES) RECOVERY(BACKOUTONLY) _FILETYPE(KSDS) _MAXRECLEN(0) _MINRECLEN(0) _KEYPOSITION(0) _KEYLENGTH(0) _STARTEMPTY(NO) _DUPKEY(NO) _FILEEXT(DAT) _USECATALOG(YES) _COLLSEQ(EBCDIC)
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.
01,APMASTER,SIMOGRPA,Application Properties,SIMOTIME.UTIL.APMASTER,ENABLED,FIRSTREF,F,YES,YES,NO,YES,YES,YES,BACKOUTONLY,KSDS,00000,00000,00000,00000,NO,NO,,,DAT,YES,ASCII, 01,CUSTMAST,SIMOGRPA,"Customer Master, File Control Table",,ENABLED,STARTUP,F,YES,YES,NO,NO,YES,YES,BACKOUTONLY,KSDS,00512,00512,00001,00012,NO,NO,C:\SIMOSAM1\DEVL\DATA\APPL,SIMOTIME.DATA.CUSTMAST,DAT,NO,ASCII, 01,ESDSC01K,SIMOGRPA,ESDS FILE 1024 Byte Records,SIMOTIME.ESDS.ESDSC01K,ENABLED,STARTUP,F,YES,YES,NO,YES,YES,YES,BACKOUTONLY,KSDS,00000,00000,00000,00000,NO,NO,,,DAT,YES,ASCII, 01,ESDSC128,SIMOGRPA,ESDS FILE 128 Byte Records,,ENABLED,STARTUP,V,YES,YES,NO,NO,YES,YES,NONE,ESDS,00128,00001,,,NO,NO,C:\SIMOSAM1\DEVL\DATA\APPL,SIMOTIME.ESDS.ESDSC128,DAT,NO,ASCII, 01,ESDSC350,SIMOGRPA,VSAM ESDS with 350 Byte Records,SIMOTIME.ESDS.ESDSC350,ENABLED,STARTUP,F,YES,YES,NO,YES,YES,YES,BACKOUTONLY,KSDS,00000,00000,00000,00000,NO,NO,,,DAT,YES,ASCII, 01,EZACONFG,SIMOGRPA,EZA SOKET Configuration File,,ENABLED,FIRSTREF,V,YES,YES,NO,YES,YES,YES,BACKOUTONLY,KSDS,00150,00016,00001,00016,NO,NO,C:\SIMOSAM1\DEVL\SYS1\CONFIG,EZACONFG,DAT,NO,EBCDIC, 01,FPMASTER,SIMOGRPA,"File Properties, Data File Information",SIMOTIME.UTIL.FPMASTER,ENABLED,FIRSTREF,F,YES,YES,NO,YES,YES,YES,BACKOUTONLY,KSDS,01024,01024,00000,00004,NO,NO,C:\SIMOSAM1\DEVL\DATA\APPL,,DAT,YES,ASCII, 01,ITEMMAST,SIMOGRPA,"Item Master, File Control Table",SIMOTIME.DATA.ITEMMAST,ENABLED,STARTUP,F,YES,YES,NO,YES,YES,YES,BACKOUTONLY,KSDS,00000,00000,00000,00000,NO,NO,,,DAT,YES,ASCII, 01,MSGXKSDS,SIMOGRPA,File Status Codes with Brief Description,,ENABLED,FIRSTREF,F,YES,YES,NO,YES,YES,YES,BACKOUTONLY,KSDS,00000,00000,00000,00000,NO,NO,C:\SIMOSAM1\DEVL\DATA\APPL\,SIMOTIME.UTIL.MSGXKSDS,DAT,NO,ASCII, 01,UTXCTLD1,SIMOGRPA,User Transaction Control,SIMOTIME.DATA.UTXCTLD1,ENABLED,FIRSTREF,F,YES,YES,NO,YES,YES,YES,BACKOUTONLY,KSDS,00000,00000,00000,00000,NO,NO,,,DAT,YES,EBCDIC,
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 FCT 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 FCT information from the resource definition file. This information is then processed in step 5 by a utility program that places FCT 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 (CSDFCTW1.cmd) is a sample of the Windows CMD needed to run this job. @echo OFF rem * ******************************************************************* rem * CSDFCTWE1.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 FCTs. rem * Author - SimoTime Technologies rem * Date - January 24, 2006 rem * rem * The 1st step will Prepare the environment. rem * The 2nd step will extract FCT information from DFHDRDAT. rem * The 3rd step will post FCT information to a CSV File. rem * rem * ******************************************************************* rem * Step 1 of 3, Prepare the environment... rem * set CmdName=CSDFCTW1 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG set JobStatus=0000 rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%, V08.06.05, User is %USERNAME%" call SimoNOTE "StepInfo Delete previously created files" set RDTLSEQ1=%BaseLib1%\DATA\TXT1\SIMOTIME.FCT2TEXT.RDTLSEQ1.TXT if exist %RDTLSEQ1% del %RDTFILELSEQ1% rem * rem * ******************************************************************* rem * Step 2 of 2, Get FCT Information from RDO File... rem * call SimoNOTE "StepInfo Create Record Sequential files" casrdtex /o%RDTLSEQ1% /gSIMOGRPA /f /e /ip"c:\SimoSam1\DEVL\sys1\CONFIG" rem * if exist %RDTLSEQ1% goto :PostToCSV set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* rem * Step 3 of 3, Post FCT Information to a CSV File... rem * :PostToCSV set CSDGETD1=%RDTLSEQ1% set CSDPUTD1=%BaseLib1%\DATA\WRK1\SIMOTIME.FCT2RSEQ.SIMOCICA.DAT set CSDPUTD2=%BaseLib1%\DATA\XLSS\SIMOTIME.FCT2LCSV.SIMOCICA.CSV set CSDFCTFLAGS=YYNNNNNN/NNNNNNNN run CSDFCTC1 if not "%ERRORLEVEL%" == "0" set JobStatus=0030 if not "%JobStatus%" == "0000" goto :EojNok call SIMONOTE "DataMAKE is %CSDPUTD1% " call SIMONOTE "DataMAKE is %CSDPUTD2% " goto :EojAok rem * rem * ******************************************************************* rem * :EojAok call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus% " goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus% " :End if not "%1" == "nopause" pause FCT User PresentationWIP COBOL Utility ProgramThe following (CSDFCTC1.cbl) is the COBOL program that will post the FCT information to a Line Sequential (or ASCII/Text) File with a CSV record structure and a record sequential file with a record structure of fixed-record and fixed-field lengths. This is a Work-In-Progress, contact SimoTime for additional information. COBOL Copyfile, Record StructureThe following (CSDFCTB1.cpy) is the COBOL copyfile that is used by the SimoTime Utility Program. ***************************************************************** * CSDFCTB1.cpy - a COBOL Copy File * * Copyright (C) 1987-2019 SimoTime Technologies * * All Rights Reserved * * Provided by SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** * The length of this data structure is 1024 bytes. * 01 FCT-RECORD. 05 FCT-RECORD-ID PIC X(02). COL-A 05 FCT-DEFINE-FILE-DD PIC X(16). COL-B 05 FCT-DEFINE-GROUP PIC X(16). COL-C 05 FCT-DESCRIPTION PIC X(54). COL-D 05 FCT-DSNAME PIC X(54). COL-E 05 FCT-STATUS PIC X(16). COL-F 05 FCT-OPENTIME PIC X(16). COL-G 05 FCT-RECORDFORMAT PIC X(16). COL-H 05 FCT-ADD PIC X(16). COL-I 05 FCT-BROWSE PIC X(16). COL-J 05 FCT-U-EXCLUSIVE PIC X(16). COL-K 05 FCT-DELETE PIC X(16). COL-L 05 FCT-READ PIC X(16). COL-M 05 FCT-UPDATE PIC X(16). COL-N 05 FCT-RECOVERY PIC X(16). COL-O 05 FCT-U-FILETYPE PIC X(16). COL-P 05 FCT-U-MAXRECLEN PIC X(16). COL-Q 05 FCT-U-MINRECLEN PIC X(16). COL-R 05 FCT-U-KEYPOSITION PIC X(16). COL-S 05 FCT-U-KEYLENGTH PIC X(16). COL-T 05 FCT-U-STARTEMPTY PIC X(16). COL-U 05 FCT-U-DUPKEY PIC X(16). COL-V 05 FCT-U-PATH PIC X(73). COL-W 05 FCT-U-FILENAME PIC X(54). COL-X 05 FCT-U-FILEEXT PIC X(16). COL-Y 05 FCT-U-USECATALOG PIC X(16). COL-Z 05 FCT-U-COLLSEQ PIC X(16). COL-AA 05 FILLER PIC X(435). * *** CSDFCTB1 - End-of-Copy File - - - - - - - - - - - CSDFCTB1 * ***************************************************************** * Explore the Record Structure for the File with FCT Information extracted from the Micro Focus DFHDRDAT configuration file. Additional information is provided that is based on the field definitions in a COBOL copy file. The field sizes and field positions within the record are calculated and included in the document. Technical DetailsWIP Details, Environment VariablesWIP CSDFCTFLAGS - Program Behavior FlagsThe CSDFCTFLAGS environment variable is used to set two groups of switches that will influence program behavior and tracing functions. Each group has eight (8) bytes or flags. The command line format is as follows. rem Positions=12345678/12345678 set MIFOFLAGS=NNNNNNNN/NNNNNNNN The following describes the first group of eight (8) flags that is referred to as the BEHAVIOR FLAGS.
The following describes the second group of eight (8) flags that is referred to as the TRACE FLAGS.
CSDGETD1 - Input FileWIP CSDPUTD1 - Output File, Fixed-Field FormatWIP set CSDPUTD1=%BaseLib1%\DATA\WRK1\SIMOTIME.FCT2RSEQ.SIMOCICA.DAT CSDPUTD2 - Output File, CSV FormatWIP set CSDPUTD2=%BaseLib1%\DATA\XLSS\SIMOTIME.FCT2LCSV.SIMOCICA.CSV SummaryThis utility program provides a batch access to get the FCT information in the Micro Focus Resource Definition File (DFHDRDAT) and post the information into an ASCII/Text file. 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 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 How to Update the File Control Table (FCT) Information. in the DFHDRDAT file using the Micro Focus CASRDTUP Utility program. Explore the CICS Connection for more examples of mainframe CICS coding 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
|