Free software training Videos

Free software training Videos
https://www.youtube.com/user/VLRTraining

List Of Best WebSites

Showing posts with label about cl programming. Show all posts
Showing posts with label about cl programming. Show all posts

Monday, 26 November 2012

CHGDTAARA in as400

The Change Data Area (CHGDTAARA) command changes the value of the local data area, the group data area, the program initialization parameter data area, or the specified data area stored in a library. This command does not change the data attributes or any of the object attributes of the data area. The new value must have the same type and a length less than or equal to the data area length or the specified substring length.

http://publib.boulder.ibm.com/html/as400/v4r5/ic2979/info/cl/chgdtaar.htm

---------------------------------------------------------

Example

ibm as400 online training

-----------------------------
 output
ibm as400 online training

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

                                      

what is cl program

  • series of CL commands to accomplish a task 

it is an administrator language.

Member type is clp.

It is not a position  oriented language .

it consist of 3 sections

1)parameter section
2)declaration section
3)executable section


Cl program must start with PGM and end with ENDPGM.

cl programs are not structured.
cl programs are implemented in mumbers attached to preferably in qclsrc file.