Saturday, 17 November 2012

dcl command

 Declare CL Variable (DCL)


DCL command is only used with cl programming.

dcl is used for declaring variables.

 variable  types

                                                                    *DEC                                                             
     A decimal variable that contains a packed decimal value.     
                                                                  
 *CHAR                                                            
     A character variable that contains a character string value. 
                                                                  
 *LGL                                                             
     A logical variable that contains a logical value of either '1'
     or '0'.              


example
DCL        VAR(&NAME) TYPE(*CHAR)

variables names must be started with & symbol
types must started with * symbol

                                      

No comments:

Post a Comment