Environment files

As described in the article before, in the hos_config2.php files, multiple environment files are included.

These hos_env_<module>.php files contain environment settings that are relevant for the processes in ProcMan.

In most cases, there should also be a hos_env_general.php file. This environment file can be seen as a fallback and contains environment settings that should be used for all clients and processes if no other environment files have been defined.

For a detailed description of all the environment parameters of the hos_config2.php file, please see:

environment

Process specific environment configuration

In most installations, processes require individual environment configurations.

See the code example below which shows an example of a hos_env_jcl.php file.

From line 3 to 51 a general environment config is set.

From line 58 to the end, the environment setting for a specific process with the name JCL_INIT_CO is set. This means that this config will "overwrite" the lines 3 to 51, because it is process specific.

hos_env_jcl_<customer>.php
return array(
    // General config with JCL templates etc.
    '*' => array (
        'activity' => array (
            '*' => array (
                'environment' => array (
                    '*' => array (
                        'temp_dsn_alloc_site' => 'tr pri=1 sec=15 blksize=32720 dsntype=library,2',
			'temp_dsn_alloc_site_ps' => 'space=15,30 cy',
                        'template' => array (
                            'dsn_filter'               => 'COJDSNF',
                            'dsn_parm'                 => 'COJDSNP',
                            'dsn_gtyp'                 => 'COJGTYP',
                            'copy'                     => 'COJCPY',
                            'delete'                   => 'COJDEL',
                         ),
                        'jcl_result_files' => array (
                            'JCKSUMO'  => true,
                            'SYSPRINT' => true,
                            'JCKDTLO'  => true
                        ),
                        'jcl_supported_statements' => array (
                            'OUTPUT' => false
                        ),
                        'jcl_dd_forms' => array (
                           ' '                    => 'DDT_Other',
                           'FRM_JCK_DD_DSNO_CO'   => 'DDT_Output',
                           'FRM_JCK_DD_REPORT_CO' => 'DDT_List',
                           'FRM_JCK_DD_DSNW_CO'   => 'DDT_Workdataset',
                           'FRM_JCK_DD_SYSOUT_CO' => 'DDT_Protocol',
                           'FRM_JCK_DD_SYSIN_CO'  => 'DDT_Controlcards',
                           'FRM_JCK_DD_DSNI_CO'   => 'DDT_Input'
                        ),
                        'jcl_osj' => array (
                            $PROD_PPLEX_id => array (
                               '*' => array (
                                   'template'   => 'COJOSJ',
                                   'tws_sys'    => $PROD_PPLEX_id,
                                   'app_id_pad' => 'PROCMAN#DMY',
                                   'wsid'       => 'CPU',
                                   'iat'        => '0600'
                               )
                           )
                        ),
                    )
                )
            )
        )
    ),
###################################################
###########  JCL      #############################	
###################################################
    //-----------------------------------------	
    // JCL_INIT_CO
    //-----------------------------------------		
    'JCL_INIT_CO' => array (
        'activity' => array (
            'JCL_INIT_AVO_CO' => array (
                'environment' => array (
                    'Test environment 1' => array (
                        'template' => array (
				'members_upload'      => 'COMEUPL', 
				'members_download'    => 'COMEDOWI'  
                        ),
                        'task' => array (
                            '*' => array (
                                'export_system'	 => array("!" . $ENTW_id . ':' .  $ENTW_name), 
                                'export_library' => array('&export_system=' . $ENTW_id 	=> $co_ENTW_JOB_export_array),
                                'source_system'  => array(
				    "!" . $ENTW_id . ':' . $ENTW_name,
				    "!" . $ADMN_HPLEX_id . ':' . $ADMN_HPLEX_name,
				    "!" . $TUC_EPLEX_id . ':' . $TUC_EPLEX_name,
				    "!" . $TUD_DPLEX_id . ':' . $TUD_DPLEX_name,
				    "!" . $PROD_PPLEX_id . ':' . $PROD_PPLEX_name
				),
				'source_library' => array(
				    '&source_system=' . $ENTW_id 		=> $co_jcl_target_array_ENTW, 
				    '&source_system=' . $ADMN_HPLEX_id	=> $co_jcl_target_array_HPLEX,
				    '&source_system=' . $TUC_EPLEX_id 	=> $co_jcl_target_array_TUC,
				    '&source_system=' . $TUD_DPLEX_id 	=> $co_jcl_target_array_TUD,
				    '&source_system=' . $PROD_PPLEX_id	=> $co_jcl_target_array_PROD
				),
				'target_library'  => '&source_library',
				'target_system'	  => '&source_system',	
				'type'            => 'JCL',  
				'member' => array (''),
			        'lrecl'  => '80'
			    )
		        )
		    )
	        )
            )
        )    
)

Last updated