Free software training Videos

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

List Of Best WebSites

Showing posts with label rpgle programming. Show all posts
Showing posts with label rpgle programming. Show all posts

Saturday, 5 January 2013

SIMPLE PROGRAM IN RPG4

STEP1:
Type wrkmbrpdm in command line
step 2:
press f6 for creating new program(STRSEU)
step3:
type program name,type,text in seu
as400 rpg program
-------------------------------

Step4
step4:step4: declare one variables a and b
Varibles must be declared in DECLARATION SECTION

Type D and press F4

Write variable name
Give DeclarationType      is S
as400 rpgle program

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

declare number2 and result varibles
In calculation specification claculate result of number1+number2 using EVAL operator
using DSPLY operation display the result



 

Thursday, 29 November 2012

data types in rpg

Blank                                                            
    Leave the field blank for a character field, or a packed decimal
    standalone field, or a zoned decimal field data structure    
    subfield.  For zoned or packed data types, the decimal positions
    field must be nonblank.                                      

A
    Type A if this is a character field.                         

B
    Type B if this is a fixed binary field.                      

D
    Type D if this is a date field.                              

F          

     Type F if this is a floating-point field. 
                                               
 G                                             
     Type G if this is a graphic character field.
                                               
 I                                             
     Type I if this is a signed integer field. 
                                               
 N                                             
     Type N if this is an indicator field.     
                                               
 P                                             
     Type P if this is a packed decimal field. 
                                               
 S                                             
     Type S if this is a zoned field.          
                                               
 T

     Type T if this is a time field.           
                                              
 U                                            
     Type U if this is a unsigned integer field.
                                              
 Z                                            
     Type Z if this is a timestamp field.     
                                              
 *                                            
     Type * if this is a pointer field.