Maintaining Objects of Type Program

The following topics are covered below:


Program Maintenance Menu

The Program Maintenance menu is displayed with function code M and object code PR in a Predict main menu or with the command MAINTAIN PROGRAM.

 17:37:24             *****  P R E D I C T  *****              2007-05-31
 Plan   0                - (PR) Program Maintenance -             Profile SYSTEM
                                                                                
  Function                              Function                                
                                                                                
  A  Add a program                      D  Display program                      
  C  Copy program                       L  Link children                        
  M  Modify program                     S  Select program from a list           
  N  Rename program                     X  Redocument program                   
  P  Purge program                      J  Physical Attributes                  
                                                                                
 Function .........                                                             
 Program ID .......                                  Attributes .........*      
 Copy ID ..........                                  Program of type ....*      
 Belongs to SY ....                                  Language ...........*      
                                                                                
 Member ...........                                  User system Fnr .....      
 Library ..........                                  User system DBnr ....      
 Restrictions ....*   Profile Default ,used          Association ........*      
                                                                                
 Command ===>                                                                   
 Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
       Help  Next  Stop  Last  LnkEl Flip  Print Impl  AdmFi SelFi Prof  Main   

Note:
Parameters not listed here are described under Global Attributes.

Parameters
Function Executes one of the maintenance functions. Standard maintenance functions are described in the section Maintenance in the Predict Reference documentation. Program-specific functions are described in Program Specific Maintenance.
Program of type

For a list of valid values, see Program Types below.

For the Select function: Program type can be specified as an additional selection criterion.

For the Add and Copy function: Program type of the new object. Value is passed to the Add/Copy Program screen.

Language

For a list of valid values, see Languages below.

For the Select function: language can be specified as an additional selection criterion.

For the Add and Copy function: language of the new object. Value is passed to the Add/Copy Program screen.

Member, Library, User system Fnr / DBnr
For the Select function: implementation pointer values can be used to restrict the scope of objects to be processed. Only those Predict program objects will be processed that document members meeting the specified Member/Library/Fnr/DBnr parameters.
Member Member documented by the Predict program.
Library Library in which the member is stored. Either a Natural library or one of the libraries listed under Program-Specific Libraries can be specified.
User system Fnr Number of the user system file.
User system DBnr Number of the database in which the user system file is implemented.

Program Types

The table below contains a list of all valid program types.

Code Program Type
A Parameter data area
C Copy Code
D Documented program
E External program
F Function
G Global data area
H Help routine
I Dynamic (see Programs of Type dynamic)
J Job
K ISPF Macro
L Local data area
M Map/Help map
N Subprogram
O Natural command processor
P Main program
R SQL procedure
S Natural subroutine
T Dialog
U Database function
X Text
Y Expert Model
1 Error Message
4 Class
5 Resource
8 Adapter
blank Undefined

Languages

The table below contains a list of all valid languages.

Code Language
B BAL (Assembler)
C COBOL
E Natural EL
F FORTRAN
G ADA
H C
J Job Control Language
N Natural
O Other
P PL/I
Q Static SQL
R REXX
S SQL Procedure Language
V Java
Z System Program, see System Programs
0 Language 0
1 Language 1
2 Language 2
3 Language 3
blank Unknown

Program-Specific Libraries

The table below contains a list of all valid program-specific libraries.

Library Name Description
*SYSADA* for ADA
*SYSBAL* for ASSEMBLER
*SYSCCC* for C
*SYSCOB* for COBOL
*SYSFOR* for FORTRAN
*SYSPLI* for PL/I
*SYSSTA* for Static SQL
*SYSSYS* for system programs
user-defined library of a 3GL application environment; must be documented in an object of type System

Add a Program Screen

The screen is displayed for the Add a Program function. The Copy and Modify screens are similar.

 17:39:17             *****  P R E D I C T  *****              2007-05-31
                              - Add a Program -                                 
 Program ID ...... HNO-PR                                                       
 Type ...........* P  Program                                                   
 Belongs to SY ..*                                                              
 Keys ..                                                                 Zoom: N
                                                                                
 Program attributes                                                             
   Language .....*    All                                                       
   Mode .........*    (none)                                                    
   Load-Lib ......                                                              
 Implementation  pointer                                                        
   Member ........               User system Fnr ...                            
   Library .......               User system DBnr ..                            
   NAT-Func ......                                                              
           ('*' to get NAT-Function name from Xref data)                        
                                                                                
 Abstract     Zoom: N               Authors     Zoom: N                         
                                                                                
                                                                                
                                                                                
                                                                                
   Additional attributes ..* N          Associations ..* N                      

Note:
Parameters not listed here are described under Global Attributes.

Parameters
Program ID The ID of the program object.
Type Program type. Must suit the language. The language can be left blank (undefined) for any program type. Enter an asterisk for list of possible values. See Overview of Language-Specific Program Types for a table of valid program type/language combinations.
Belongs to SY ID of the system to which the program is linked. If the program is connected to more than one system, >>>multiple<<< is displayed in this field in the Modify Program function and the field is protected.
Program Attributes
Language The language in which the program is written. Enter an asterisk for a list of possible values. See Overview of Language-Specific Program Types for a table of valid program type/language combinations.
Mode
Mode of operation in which the program is used.
A All (both online and batch modes)
B Batch mode
O Online
blank Undefined
Load-Lib The load library.
Implementation Pointer
Member Member documented by the Predict program (not applicable to programs of type 5).
Library The name of the library in which the member is stored (not applicable to programs of type D).
User system Fnr The number of the user system file. For 3GL programs, the number is always 255.
User system DBnr The number of the database in which the user system file is located. For 3GL programs, the number is always 255.
NAT-Func Applicable only to Natural subroutines (type S). The name of the function of the subroutine (DEFINE SUBROUTINE). If an asterisk is entered, Predict derives the function name from XRef data if XRef data exists for the specified member.