RPGsp Reference
About RPGsp
Getting Started with RPG Smart Pages
Installing the IDE
Connecting to the Host
Applying the Software Key
Installing Server Components
What components are installed?
Library for dynamic pages (or CGI programs)
IFS Folder for static content
HTTP Instance
What if HelloWorld doesn't launch?
Creating a simple browser application
Groundwork
Building the application
Reviewing the code
Customizing the look
Customizing the functionality
Validating fields
Setting default values for a new record
Adding fields and files to the subfile page
Adding fields to the view record, change record, and add record pages
Deleting fields
Reusing modules and service programs
Compiling and Testing
What is an RPG Smart Page?
Typical uses for RPG Smart Pages
HTML Basics
<HTML> Tag
<HEAD> and <TITLE> Tags
<BODY> Tag
Formatting Text
Linking to other pages
Adding Images
HTML Tables
HTML Forms
Other resources for learnin HTML
Mixing HTML with RPG
RPG scripts
RPG variables (or expressions)
Stateless Programming
Converting Green-Screens
Introduction
Getting Started
Converting an RPG Program
Converting a CL Program
Converting Only DDS to HTML
Mass Conversions
Understanding Session Variables
What Is a Session
What Are Session Variables?
Method 1 (Session Cookies)
Method 2 (Database Storage)
Using the IDE
Working with files
Add File Dialog
New Tab
Existing Tab
Wizards Tab
Recent Tab
Code Only Mode
Open File Dialog
Opening a file/source member
Opening multiple files/source members
Code Only Mode
Deleting files, source members, and folders
Renaming files and folders
Changing current folder/directory
Creating a new folder/directory
Changing library and source file
Interrupting directory listing
Timed out connection
Save As Dialog
Saving
Changing current folder/directory
Creating a new folder/directory
Changing library and source file
Interrupting directory listing
Timed out connection
Manage Files Dialog
Opening files/source members
Copying files/images to the IFS
Deleting files, source members, and folders
Renaming a file/source member or directory/folder
Changing the folder/directory you are working in
Creating a new folder/directory
Changing library and source file
Interrupting directory listing
Timed out connection
Save Changes Dialog
Yes Button
No Button
Cancel Button
Menus
File Menu
Edit Menu
View Menu
Insert Menu
Build/Run Menu
Debug Menu
Format Menu
Tools Menu
Wizards Menu
Table Menu
Window Menu
Help Menu
Toolbars
Standard Toobar
Edit Toolbar
Toolbox Elements
General
Form
RPG
Absolute
Open Items Window
Compiler Output Window
Using the Page Designer
Features Overview
Page Designer Hot Keys
Inserting Elements
Selecing and Modifying Elements
Using the Properties Inspector
Laying Elements Out on a Page
Using Absolute Positioning
Toggling Detailed View
Preview
Using the Code Editor
Editor Hot Keys
Using Macros
Using the HTML Properties Inspector
Using the RPG prompter
Using the Fixed to Free Format Conversion Tool
Using the RPG subs drop-down
Using the RPG toolbox section
Using the RPG-Alive Code Outline
Using RPG-Alive's Syntax Highlighting
Using RPG-Alive's Keyword Auto-Completion
Using IntelliSense
Context-sensitive RPG reference
The Integrated Source Control System
Installing the Source Control System
Using the Source Control System
Integrating RPGsp with Other Environments
Integrating with PC-based designers and editors
Integrating with WebSphere Development Studio Client (WDSc)
Setting WDSc Preferences
Creating RPGsp files within WDSc
Working with RPGsp files in WDSc
Integrating with other servers
Database Repository
Overview
Insert as Blank Input Field
Insert as Sticky Input Field
Insert as Output Field
Insert as Hidden Field
Field Properties
Adding a Related File
Related Files
Using Wizards
Subfile Wizard
Overview
Document Attributes
Subfile Field Selection
Subfile Details
View Record Field Selection
Change Record Field Selection
Add Record Field Selection
Finishing the Wizard
Record Inquiry Page Wizard
Overview
Document Attributes
Field Selection
Finishing the Wizard
Record Update Form Wizard
Overview
Document Attributes
Field Selection
Finishing the Wizard
New Record Form Wizard
Overview
Document Attributes
Field Selection
Finishing the Wizard
Record Selection Wizard
Overview
Document Attributes
Subfile Field Selection
Subfile Details
Finishing the Wizard
Green Screen to Web Conversion Wizard
Overview
Retrieving Source and Field Definitions
Finishing the Wizard
After the Conversion
Insert RPG Field Wizard
Overview
Data Types
Usages
Styles
Databound List / Drop-down Menu Wizard
Overview
Specifying Wizard Parameters
Finishing the Wizard
SQL Subfile Wizard
Overview
Documents Attributes
Subfile Field Selection
Subfile Details
View Record Field Selection
Change Record Field Selection
Add Record Field Selection
Finishing the Wizard
Miscellaneous Wizards
Load All Form Input Wizard
Load with RPGspIn Wizard
Themes
Using Themes
Customizing Themes
Theme Syntax
HTML 4.0 Reference
What's New in HTML 4.0
Structure of an HTML Document
Top-Level Elements
HTML - HTML Document
HEAD - Document Head
BODY - Document Body
DOCTYPE - Document Type Declaration
Head Elements
BASE - Document Base URI
LINK - Document Relationship
META - Metadata
STYLE - Embedded Style Sheet
TITLE - Document Title
Generic Block-level Elements
ADDRESS - Contact Information
BLOCKQUOTE - Block Quotation
CENTER - Centered Block
DIV - Generic Block-level Container
H1 - Level-one Heading
H2 - Level-two Heading
H3 - Level-three Heading
H4 - Level-four Heading
H5 - Level-five Heading
H6 - Level-six Heading
HR - Horizontal Rule
ISINDEX - Input Prompt
NOSCRIPT - Non-script Content
P - Paragraph
PRE - Preformatted Text
List Elements
DIR - Directory List
DL - Definition List
DT - Definition Term
DD - Definition Description
LI - List Item
MENU - Menu List
OL - Ordered List
UL - Unordered List
Table Elements
TABLE - Table
CAPTION - Table Caption
COLGROUP - Table Column Group
COL - Table Column
THEAD - Table Head
TFOOT - Table Foot
TBODY - Table Body
TR - Table Row
TD - Table Data Cell
TH - Table Header Cell
Form Elements
FORM - Interactive Form
BUTTON - Button
FIELDSET - Form Control Group
LEGEND - Fieldset Caption
INPUT - Form Input
LABEL - Form Field Label
SELECT - Option Selector
OPTGROUP - Option Group
OPTION - Menu Option
TEXTAREA - Multi-line Text Input
Special Inline Elements
A - Anchor
APPLET - Java Applet
BASEFONT - Base Font Change
BDO - BiDi Override
BR - Line Break
FONT - Font Change
IFRAME - Inline Frame
IMG - Inline Image
MAP - Image Map
AREA - Image Map Region
OBJECT - Embedded Object
PARAM - Object Parameter
Q - Short Quotation
SCRIPT - Client-side Script
SPAN - Generic Inline Container
SUB - Subscript
SUP - Superscript
Phrase Elements
ABBR - Abbreviation
ACRONYM - Acronym
CITE - Citation
CODE - Computer Code
DEL - Deleted Text
DFN - Defined Term
EM - Emphasis
INS - Inserted Text
KBD - Text to be Input
SAMP - Sample Output
STRONG - Strong Emphasis
VAR - Variable
Font Style Elements
B - Bold Text
BIG - Large Font
I - Italic Text
S - Strike-through Text
SMALL - Small Font
STRIKE - Strike-through Text
TT - Teletype Text
U - Underlined Text
Frames
FRAMESET - Frameset
FRAME - Frame
NOFRAMES - Frames Alternate Content
Character Entities
HTML 4.0 Latin-1 Entities
HTML 4.0 Entities for Symbols and Greek Letters
HTML 4.0 Special Entities
Alphabetical List of HTML Elements
Organizational List of HTML Elements
List of Block-level Elements
List of Inline Elements
Common Attributes
Attribute Values
HTML 4.0 Deprecated Features
RPGsp Functions
IIf
QCMDEXC
RPGspClear
RPGspClearOvr
RPGspClearOvr2
RPGspCookie
RPGspDone
RPGspFileOut
RPGspGetInpBuf
RPGspGetMsg
RPGspGetPSId
RPGspGetQryStr
RPGspHTML
RPGspHTMLEncode
RPGspIn
RPGspInclude
RPGspInit
RPGspInitL
RPGspInMult
RPGspInUpper
RPGspInVal
RPGspIsMainProg
RPGspNeedOutput
RPGspOut
RPGspOutputOvr
RPGspOutputOvr2
RPGspOverlay
RPGspOverlay2
RPGspRandom
RPGspRcvMsg
RPGspRedirect
RPGspReInit
RPGspRunQry
RPGspSave
RPGspSessionId
RPGspSetCntType
RPGspSetHeader
RPGspSetInpBuf
RPGspText2HTML
RPGspUpload
RPGspUpper
RPGspURLEncode
RPGspVal
ILE RPG Built-in-functions
%ABS
%ADDR
%ALLOC
%CHAR
%CHECK
%CHECKR
%DATE
%DAYS
%DEC
%DECH
%DECPOS
%DIFF
%DIV
%EDITC
%EDITFLT
%EDITW
%ELEM
%EOF
%EQUAL
%ERROR
%FLOAT
%FOUND
%GRAPH
%HOURS
%INT
%INTH
%LEN
%LOOKUPxx
%MINUTES
%MONTHS
%MSECONDS
%NULLIND
%OCCUR
%OPEN
%PADDR
%PARMS
%REALLOC
%REM
%REPLACE
%SCAN
%SECONDS
%SHTDN
%SIZE
%SQRT
%STATUS
%STR
%SUBDT
%SUBST
%THIS
%TIME
%TIMESTAMP
%TLOOKUPxx
%TRIM
%TRIML
%TRIMR
%UCS2
%UNS
%UNSH
%XFOOT
%XLATE
%YEARS
ILE RPG Operations
ACQ
ADD
ADDDUR
ALLOC
ANDxx
BEGSR
BITOFF
BITON
CABxx
CALL
CALLB
CALLP
CASxx
CAT
CHAIN
CHECK
CHECKR
CLEAR
CLOSE
COMMIT
COMP
DEALLOC
DEFINE
DELETE
DIV
DO
DOU
DOUxx
DOW
DOWxx
DSPLY
DUMP
ELSE
ELSEIF
ENDSR
ENDyy
EVAL
EVALR
EXCEPT
EXFMT
EXSR
EXTRCT
FEOD
FOR
FORCE
GOTO
IF
IFxx
IN
ITER
KFLD
KLIST
LEAVE
LEAVESR
LOOKUP
MHHZO
MHLZO
MLHZO
MLLZO
MONITOR
MOVE
MOVEA
MOVEL
MULT
MVR
NEXT
OCCUR
ON-ERROR
OPEN
ORxx
OTHER
OUT
PARM
PLIST
POST
READ
READC
READE
READP
READPE
REALLOC
REL
RESET
RETURN
ROLBK
SCAN
SELECT
SETGT
SETLL
SETON
SHTDN
SORTA
SQRT
SUB
SUBDUR
SUBST
TAG
TEST
TESTB
TESTN
TESTZ
TIME
UNLOCK
UPDATE
WHEN
WHENxx
WRITE
XFOOT
XLATE
Z-ADD
Z-SUB
Using Server Configuration Utilities
When To Use What
Installing and Testing RPG Smart Pages
Configuring the RPG/CGI Library
Configuring Library List(s)
Reuploading Theme Files
Creating and Configuring the HTTP Instance Automatically
Starting and Stopping the HTTP Instance
Manually Configuring the HTTP Instance
Using HTTP Admin Pages
Options Dialog
Server Profiles
Library Lists
Compiler
Source Control
Source Editor
Code Outline
Code Delineation
Coding Assistance
HTML Designer
External
Files And Members
Automated Backups
Green-Screen to Web
Paths
Compile Parameters Dialog
Options for Active Documents
Global Options for RPGsp Documents
Global Options for RPGLE Source Members
Global Options for Misc. Source Members
Resolving Run-time Problems
Analyzing The HTTP Server Job Log
Cross-Referencing Line Numbers
Retaining the Generated RPGLE Source
Debugging RPGsp Applications
Method 1 (using the integrated debugger)
Method 2 (debugging through a service job)
Method 3 (debugging interactively)
Setting Up a Test Environment
Creating a Test Environment Profile
Switching Between Environments