Saturday 10 August 2013

JCL Command Quick Reference.


JCL Command
JCL Command Quick Reference.
Job Control Language (JCL) is used to tell the system what program to execute, followed by a description of program inputs and outputs. It is possible to submit JCL for batch processing or start a JCL procedure (PROC), which is considered a started task.

The details of JCL can be complicated but the general concepts are quite simple. Also, a small subset of JCL accounts for at least 90% of what is actually used.

Job control language (JCL) is a set of statements that you code to tell the z/OS® operating system about the work you want it to perform.

Although this set of statements is quite large, most jobs can be run using a very small subset. Below is list of important command.

 Job Control Language Statements  Quick Reference.
               
 Statement          
 Name             
 Purpose                          
 // Command      
                 
                 
                 
                 
                 
                    
 JCL command   
               
               
               
               
               
                  
 Enters an MVS system operator 
 command through the input     
 stream. The command statement is
 used primarily by the operator.
 Use the COMMAND statement     
 instead of the JCL command    
 statement.                       
 // COMMAND      
                 
                 
                 
                    
 command       
               
               
               
                  
 Specifies an MVS or JES command
 that the system issues when the
 JCL is converted. Use the     
 COMMAND statement instead of the
 JCL command statement.           
 //* comment     
                 
                 
                    
 comment       
               
               
                  
 Contains comments. The comment
 statement is used primarily to
 document a program and its    
 resource requirements.           
 // CNTL         
             
       
 control       
                  
 Marks the beginning of one or 
 more program control statements. 
 // DD           
                    
 data definition
                  
 Identifies and describes a data
 set.                             
 /*              
                 
                 
                 
                 
                    
 delimiter     
               
               
               
               
                  
 Indicates the end of data placed
 in the input stream.          
                               
 Note: A user can designate any
 two characters to be the      
 delimiter.                       
 // ENDCNTL      
                    
 end control   
                  
 Marks the end of one or more  
 program control statements.      
 // EXEC         
                 
                 
                 
                 
                    
 execute       
               
               
               
               
                  
 Marks the beginning of a job  
 step; assigns a name to the   
 step; identifies the program or
 the cataloged or in-stream    
 procedure to be executed in this
 step.                            
 //IF/THEN/ELSE/ENDIF                
IF/THEN/ELSE/ENDIF
 statement construct.
 Specifies conditional execution
tof job steps within a job.       
 // INCLUDE      
                 
                 
                 
                 
                    
 include       
               
               
               
               
                  
 Identifies a member of a      
 partitioned data set (PDS) or 
 partitioned data set extended 
 (PDSE) that contains JCL      
 statements to include in the job
 stream.                          
 // JCLLIB       
                 
                 
                 
                 
                    
 JCL library   
               
               
               
               
                  
 Identifies the libraries that 
 the system will search for:   
                               
 °   INCLUDE groups            
 °   Procedures named in EXEC  
     statements.                  
 // JOB          
                    
 job           
                  
 Marks the beginning of a job; 
 assigns a name to the job.       
 //                 
 null             
 Marks the end of a job.          
 // OUTPUT       
                 
                 
                    
 output JCL    
               
               
                  
 Specifies the processing options
 that the job entry subsystem is
 to use for printing a sysout  
 data set.                        
 // PEND         
                    
 procedure end 
                  
 Marks the end of an in-stream or
 cataloged procedure.             
 // PROC         
                 
                 
                 
                 
                    
 procedure     
               
               
               
               
                  
 Marks the beginning of an     
 in-stream procedure and may mark
 the beginning of a cataloged  
 procedure; assigns default    
 values to parameters defined in
 the procedure.                   
 // SET          
                 
                 
                 
                 
                    
 set           
               
               
               
               
                  
 Defines and assigns initial   
 values to symbolic parameters 
 used when processing JCL      
 statements. Changes or nullifies
 the values assigned to symbolic
 parameters.                      
 // XMIT         
                    
 transmit      
                  
 Transmits input stream records
 from one node to another.        


Created with Artisteer

No comments:

Post a Comment

New In-feed ads