Access to Resource Definitions
 PCT 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
  JCL for Execution with Mainframe Express or Mainframe
  CMD for Execution with Net Express and Windows
  The COBOL Demonstration Program
  Summary
 
  Software Agreement and Disclaimer
  Downloads and Links to Similar Pages
  Comments or Suggestions
  About SimoTime

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

The resource 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 Program Control Table (PCT) 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 PCT information into a CSV file

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

Getting information from thePCT 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 /x /e /ip"c:\SimoSam1\sysliba1"

The following shows an example of the ouput 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,AMUP,MN1UTL  ,Application and Data Management Utility Programs  ,
TRAN,ANSO,ZPOZPPR ,Load a Table                                      ,
TRAN,APU1,AP2UPD  ,Application Properties Repository                 ,
TRAN,CUD1,CUDUMP  ,Customer File Dump                                ,
TRAN,CUI1,CU2INQ  ,Customer Inquiry, Program Control Table           ,
TRAN,CUM1,CUMEND  ,Record Patch for Customer File                    ,
TRAN,CUU1,CU2UPD  ,Customer File Update                              ,
TRAN,FPU1,FP2UPD  ,File Properties Repository                        ,
TRAN,FSC1,FILERC  ,File Status Codes                                 ,
TRAN,ITI1,IT2INQ  ,Item Inquiry, Program Control Table               ,
TRAN,OPT1,MN1FMS  ,Menu Transaction for File Management              ,

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.

               
     
CSDPCTE1
cmd
      1. The CMD member for getting PCT 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 PCT Information
     
     
       
 
RDTFILE2
text
CSDPCTC1
cbl
SIMOCICA
text/csv
  5. Post PCT 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 CSDPCTE1 Command to Get PCT 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 thePCT 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 Execution with Net Express and Windows
(Next) (Previous) (Table-of-Contents)

The following (CSDPCTE1.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 PCTs.
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 PCT information from DFHDRDAT.
rem  *
rem  * The 3rd step will post PCT infromation to a CSV File.
rem  *
rem  * *******************************************************************
rem  * Step 1 of 3,  Prepare the environment...
rem  *
     set CmdName=CSDPCTE1
     call ezSetEnv
     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 rdtfile1=%BaseLib1%\CSD\SIMOTIME.PCT.RDTFILE1.TXT
     if exist %RDTFILE1% del %RDTFILE1%
rem  *
rem  * *******************************************************************
rem  * Step 2 of 3, Get PCT Information from RDO File...
rem  *
     casrdtex /o%RDTFILE1% /gSIMOGRPA /x /e /ip"c:\SimoSam1\sysliba1"
rem  *
     if exist %RDTFILE1% 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=%RDTFILE1%
     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 Demonstration Program
(Next) (Previous) (Table-of-Contents)

The following (CSDPCTC1.CBL) is the COBOL program that will post the PCT 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 PCT 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)

You may download this example at http://www.simotime.com/sim4dzip.htm#zPACKcsdpct01 or view the complete list of SimoTime 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.

For information about a utility program that provides access to the FCT 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