Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
39Activity
0 of .
Results for:
No results containing your search query
P. 1
RPGLE

RPGLE

Ratings:

4.0

(1)
|Views: 5,081|Likes:
Published by api-3857483

More info:

Published by: api-3857483 on Oct 19, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

1. Advantages of ILE:
RPG IV is more readable
Allows for greater application modularity with static binding which

means there are fewer external calls.
Enhances programmer productivity by allowing greater code re use
Enhances mixed language support by allowing the binding ILE languages

into a single program
Builds a foundation for the future by moving closer to object oriented
design , modular programming and code reuse
Enhancements in RPGIV

Mixed Case entry permitted
Compiler is not case sensitive
Compiler can translate mixed case to upper case.
Character names allowed
Full DDS length supported
Columns available for suscripts
Undescore allowed in names
Blank lines allowed making it more readable

Limit changes :
Limit Changes
RPGIII
RPGIV
Field names & Array
Names
6
10
Length of Character
Variable
256
32767
No of Possible array
elements
9999
32767
No of Possible
Subroutines
256
No Limit
No of Decimal
Positions
9
30
No of files per
program
50
No Limit
H spec :

Completely free format
Additional functions: Date and Time Format
Enhanced Readability

F-Spec:

Part of F-spec are now keyword based
No of files un limited
File definition checks have been relaxed
File names length increased to 10 characters and record lengths to 5
digits

D-Spec:
Defining the data structures
1

Defining arrays
Defining standalone fields
Indent field names to show structures
Easily define arrays within data structures
Use keywords to make your code more readable and more flexible

Keywords used in the D-Spec:

INZ
OCCURS
OVERLAY
EXTNAME
EXTFLD
PREFIX
DIM
ASCEND/DESCEND
PERRCD
FROMFILE/TOFILE
EXFMT
ALT
CTDATA

C-Spec:
RPGIII
RPGIV
BITOF
BITOFF
CHEKR
CHECKR
COMIT
COMMIT
DEFN
DEFINE
DELET
DELETE
EXCPT
EXCEPT
LOKUP
LOOKUP
OCCUR
OCCUR
REDPE
READPE
RETRN
RETURN
SELEC
SELECT
SETOF
SETOFF
UPDAT
UPDATE
UNLCK
UNLOCK
WHXX
WHENXX

Factor1,Factor2 & Result each increased to 14 characters
Extended Factor2 allows free-format expressions
Field length increased to 5 positions
Decimal Positions increased to 2.
Many opcodes increased to 6 characters
Space for opcodes plus extenders increased to 10 characters
New opcodes and operators added with extended factor 2
Conditioning indicators reduced to 1 from 3

O-Spec:

No major changes in the O specification
Names on the O spec have been expanded
Skip Before/After and Space Before/After have also been extended , to
allow 3 positions

New Opcodes:
2

ADDDUR
CALLB
CALLP
DOU
DOW
EVAL
EXTRCT
IF
SUBDUR
TEST
WHEN

RPGIV supports date,time and timestamp data types With date , time and
timestamp fields you can Calculate durations
Extract portions of dates and times
Move data from one field to another
Compare their values
Test for valid values

The data types supported are
D for Date
T for Time
Z for Timestamp

The internal format can be specified on the H spec for all fields or on
the D spec for specific fields
With the introduction of the ADDDUR & SUBDUR opcodes you can easily add
or subtract duration b/n date,time or timestamp fields.
The EXTRCT opcode easily extracts a logical portion of a date ,time or
timestamp field.
The MOVE or MOVEL opcode can be used to easily move data to and from
date,time & timestamp fields.
You can compare dates, times& timestamps & test the validity of these
fields using the TEST opcode.
EXPRESSIONS:
More precise results using expressions
RPGIV is easier to read and maintain as it handles half adjustments &

avoids usage of temporary variables
Three type of expressions :Arithmetical, conditional and string
Expressions are entered in the Extended calculation.
Precedence rules apply to the evaluation of expressions.
Expressions use DOU,DOW,IF,WHEN&EVAL opcodes.

SUBPROCEDURES & PROTOTYPES:
A subprocedure is a procedure specified after the main section.
3

Activity (39)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
anuppdas liked this
anuppdas liked this
Siva Gangala liked this
bhargavmitra liked this
lionkingsr liked this
romof liked this
hebsijegan liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->