Access to Resource Definitions
 FCT Information and the Micro Focus DFHDRDAT File
http://www.simotime.com
When technology complements business    Copyright © 1987-2010  SimoTime Enterprises  All Rights Reserved
  Table of Contents Version 10.03.20 
  Introduction
 
  Programming Objectives
  Programming Input and Output
  Programming Requirements
  Programming Overview
  CMD for Execution with Net Express and Windows
  The COBOL Utility Program
  Summary
 
  Software Agreement and Disclaimer
  Downloads and Links to Similar Pages
  Comments or Suggestions
  About SimoTime

Introduction
(Next) (Previous) (Table-of-Contents)

The resources used by the Micro Focus Enterprise Server, Mainframe Subsystem Support (or ES/MSS) is stored in the the resource definitions file (DFHDRDAT). This file is a Micro Focus Key-Sequenced-Data-Set. This utility progam provides a batch access to get the File Control Table (FCT) and post this information into an ASCII/Text file.

Programming Objectives
(Next) (Previous) (Table-of-Contents)

This example illustrates the following functions.

1. Describe how to extract system configuration information (or resource definitions) from the Micro Focus DFHDRDAT File..
2. Demostrate how to post FCT information into a CSV file

Programming Input and Output
(Next) (Previous) (Table-of-Contents)

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 syntaxt for the Micro Focus utility program. The value of %RDTFILE2% is the location and name of the output file.

c:\> casrdtex /o%RDTFILE2% /gSIMOGRPA /f /e /ip"c:\SimoSam1\sysliba1"

The following shows an example of the ouput for a single FCT entry produced by the Micro Focus utility program.

DEFINE FILE(CUSTMAST) GROUP(SIMOGRPA)
DESCRIPTION(Customer Master, File Control Table)
       DSNAME(SIMOTIME.DATA.CUSTMAST) STATUS(ENABLED) OPENTIME(STARTUP)
       RECORDFORMAT(F) ADD(YES) BROWSE(YES) 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\DataLibA\Dyn1\SIMOTIME.DATA.CUSTMAST.DAT)
       _FILEEXT(DAT) _USECATALOG(YES) _COLLSEQ(ASCII)

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.

FILE,APMASTER,SIMOTIME.UTIL.APMASTER                      ,
FILE,CUSTMAST,SIMOTIME.DATA.CUSTMAST                      ,
FILE,ESDSC128,SIMOTIME.ESDS.ESDSC128                      ,
FILE,FPMASTER,SIMOTIME.UTIL.FPMASTER                      ,
FILE,ITEMMAST,SIMOTIME.DATA.ITEMMAST                      ,
FILE,MSGXKSDS,SIMOTIME.UTIL.MSGXKSDS                      ,

WIP... we plan to add additional information to the CSV File and provide an HTML Format as user documentation.

Programming Requirements
(Next) (Previous) (Table-of-Contents)

This suite of samples programs will run on the following platforms.

1. Executes on Windows/XP or Window/Server using Micro Focus Server or Studio and the CMD file provided.
2. May be ported to run on the UNIX platforms supported by Micro Focus Server or Studio.

Programming Overview
(Next) (Previous) (Table-of-Contents)

The following is a flowchart of the job for executing the program to compare the contents of two data files.

               
     
CSDPCTG1
cmd
      1. The CMD member for getting FCT Information
     
     
       
     
ezSetEnv
cmd
Environment
variables
  2. Set common environment variables
     
     
       
     
SimoNOTE
cmd
MESSAGE
syslog
  3. Post message to console and SimoNOTE log file
     
     
       
 
DFHDRDAT
ksds
CASRDTEX
ES/MSS
RDTFILE2
text
  4. ES/MSS Utility for extracting FCT Information
     
     
       
 
RDTFILE2
text
CSDFCTC1
cbl
SIMOCICA
text/csv
  5. Post FCT Information to a CSV File
     
     
       
     
SimoNOTE
cmd
MESSAGE
syslog
  6. Post message to console and SimoNOTE log file
     
     
       
     
End-of-Job
EOJ
      7. End of Job
               
 The CSDFCTE1 Command to Get FCT Information from DFHDRDAT and Post to a CSV File.

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 Execution with Net Express and Windows
(Next) (Previous) (Table-of-Contents)

The following (CSDFCTE1.CMD) is a sample of the Windows CMD needed to run this job.

@echo OFF
rem  * *******************************************************************
rem  *                   This program is provided by:                    *
rem  *                    SimoTime Enterprises, LLC                      *
rem  *           (C) Copyright 1987-2010 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 Enterprises
rem  * Date   - January 24, 2006
rem  *
rem  * The 1st step will Prepare the environment.
rem  *
rem  * The 2nd step will extract FCT information from DFHDRDAT.
rem  *
rem  * The 3rd step will post FCT infromation to a CSV File.
rem  *
rem  * *******************************************************************
rem  * Step 1 of 3,  Prepare the environment...
rem  *
     set CmdName=CSDFCTE1
     call ezSetEnv %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting CmdName %CmdName%, V08.06.05, User is %USERNAME%"
     call SimoNOTE "StepInfo Delete previously created files"
     set rdtfile2=%BaseLib1%\CSD\SIMOTIME.FCT.RDTFILE2.TXT
     if exist %RDTFILE1% del %RDTFILE1%
rem  *
rem  * *******************************************************************
rem  * Step 2 of 3, Get FCT Information from RDO File...
rem  *
     call SimoNOTE "StepInfo Create Record Sequential files"
     casrdtex /o%RDTFILE2% /gSIMOGRPA /f /e /ip"c:\SimoSam1\sysliba1"
rem  *
     if exist %RDTFILE2% 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=%RDTFILE2%
     set CSDPUTD1=%BaseLib1%\CSD\SIMOTIME.FCT.SIMOCICA.CSV
     run CSDFCTC1
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

The COBOL Utility Program
(Next) (Previous) (Table-of-Contents)

The following (CSDFCTC1.CBL) is the COBOL program that will post the FCT information to a CSV File.

WIP... This is a Work-In-Progress, contact helpdesk@simotime.com for additional information.

Summary
(Next) (Previous) (Table-of-Contents)

This utility progam 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.

Software Agreement and Disclaimer
(Next) (Previous) (Table-of-Contents)

Permission to use, copy, modify and distribute this software for any commercial purpose requires a fee to be paid to Simotime Enterprises. Once the fee is received by SimoTime the latest version of the software 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 Enterprises.

Permission to use, copy, modify and distribute this software for a non-commercial purpose and without fee is hereby granted, 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 Enterprises.

SimoTime Enterprises makes no warranty or representations about the suitability of the software for any purpose. It is provided "AS IS" without any express or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Enterprises 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.

Downloads and Links to Similar Pages
(Next) (Previous) (Table-of-Contents)

This utility program provides access to the FCT information stored in the Micro Focus DFHDRDAT file and may be downloaded using this link, http://www.simotime.com/sim4dzip.htm#zPACKcsdfct01,

For information about a utility program that provides access to the PCT information stored in the Micro Focus DFHDRDAT file refer to this link. ,

You may view the complete list of SimoTime Utilities and Examples at http://www.simotime.com/sim4dzip.htm.

Note: You must be attached to the Internet to download a Z-Pack or view the list.

This item will provide a link to  an ASCII or EBCDIC translation table. A column for decimal, hexadecimal and binary is also included.

This document provides a quick summary of the  File Status Key  for VSAM data sets and QSAM files.

To review all the information available on this site start at  The SimoTime Home Page .

Comments or Suggestions
(Next) (Previous) (Table-of-Contents)

If you have any questions, suggestions or comments please call or send an e-mail to: helpdesk@simotime.com

We appreciate your comments and feedback.

About SimoTime Enterprises
(Next) (Previous) (Table-of-Contents)

Founded in 1987, SimoTime Enterprises 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. This includes the smallest thin client using the Internet and the very large mainframe systems. There is more to making the Internet work for your company's business than just having a nice looking WEB site. It is about combining the latest technologies and existing technologies with practical business experience. It's about the business of doing business and looking good in the process. 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. 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


Return-to-Top
Copyright © 1987-2010  SimoTime Enterprises  All Rights Reserved
When technology complements business
http://www.simotime.com
Version 04.12.23