Difference between revisions of "Test268 Section 4"

From MidrangeWiki
Jump to: navigation, search
(Code and use Short Form expressions (e.g., + =))
(Code complex D-specs (e.g., OVERLAY, coding fields without attributes, etc.))
Line 17: Line 17:
  
 
=== Code complex D-specs (e.g., OVERLAY, coding fields without attributes, etc.) ===
 
=== Code complex D-specs (e.g., OVERLAY, coding fields without attributes, etc.) ===
 
+
D DataStruct      DS
 +
D  Field1                      15A
 +
D  Field2                      5A  OVERLAY(Field1)
 +
D  Field3                      5A  OVERLAY(Field1:*NEXT)
 +
D  Field4                      5A  OVERLAY(Field1:*NEXT)
  
 
=== Use modern techniques to handle numbered indicators ===
 
=== Use modern techniques to handle numbered indicators ===

Revision as of 01:15, 9 April 2006

<< Previous Section | Home | Next Section >>

Section 4 - Advanced RPG techniques (25%)

Given an example of a complex logical expression, determine its results

Given an example of deeply-nested logic within a sample of RPG code, determine the results of running the code

Use Data Structure arrays

Code complex D-specs (e.g., OVERLAY, coding fields without attributes, etc.)

D DataStruct DS D Field1 15A D Field2 5A OVERLAY(Field1) D Field3 5A OVERLAY(Field1:*NEXT) D Field4 5A OVERLAY(Field1:*NEXT)

Use modern techniques to handle numbered indicators

Determine appropriate use of system APIs

Code subprocedures

Declare and use subprocedures

Create and use multiple occurrence data structures

Use externally-described data structures

Write logic (including I/O operations) without numbered indicators

Code and use /Free format Calc specifications

Code and use Short Form expressions (e.g., + =)

i += 1;

Translate operation codes not supported in /Free form (e.g., MOVE, CALL, etc. into /Free form)

Use qualified Data Structures

Use pointer data types

Code and use Named Constants

Prototype program Calls

Determine appropriate use of passing parameters by value versus by reference

Prototype System APIs and C functions

Understand the ability for RPG procedures to call and be called by Java Methods

Enumerate advantages of Prototypes compared with PARM and PLIST

Determine appropriate use for prototype keywords, such as CONST, VALUE, and OPTIONS (*NOPASS, *OMIT, *VARSIZE)

<< Previous Section | Home | Next Section >>