MC Press Online
Welcome to the MC Press Online!
Need help with our eBooks?
Contact PublishersRow.com
Click here, to go to our main store

  MC Press Online eBookStore  

e-RPG(V2)
preview of book e-RPG(V2)
text of book e-RPG(V2)

e-RPG(V2)

Author:
Publisher: MC Press Online
Publication Date: 2002
Subject: Computer: Programming
Category: Programming
Number of Pages: 401

Free Preview    Email to Friend   Add to wish list
 Available as: (for format`s description click on its name)
Individual E-Version (PDF) Individual E-Version (PDF) ISBN: 9781583470411  
$39.60
 
 Reg.: $
99.00 per N pages
 You Save: 
$59.40 (60%)
 Online  Open CopyPrint    
all time
Library Edition Library Edition ISBN: 9781583470411  
$99.00
 
 Reg.: $
99.00 per N pages
 
hosting service 15% annual fee 55% one-time payment    
Printed Edition   see MC Press Online    
About this title
This companion to e-RPG: Building AS/400 Web Applications with RPG includes new techniques and functions to make e-RPG programming easier and more powerful than ever before. Not only does it provide the knowledge needed to create fully functional Web applications using OS/400 and RPG, but it also offers a thorough introduction to the Integrated Language Environment (ILE). Operators learn about using embedded SQL for easier and more effective queries, using e-RPG as Perl for OS/400, debugging information for e-RPG and JavaScript, and creating dynamic Web page changes. Users are also introduced to XML and handheld device programming through Wireless Markup Language (WML) and Handheld Device Markup Language (HDML) examples.
About author
Bradley V. Stone
Bradley V. Stone has created many web-based applications using the AS/400 and RPG. He is the web administrator for Netshare400.com and provides AS/400 shareware and e-consulting services for BVS/Tools. He lives in Mankato, Minnesota.

Contents
INTRODUCTION
A VISIT TO THE PAST OF e-RPG
A VISIT TO THE FUTURE OF E-RPG
THE “HELLO WORLD” SYNDROME
RIGHT TO THE POINT
ON WITH THE SHOW

Chapter 1: TOOLS FOR THE WEB
TEAM HTML
  Light Up the Highway
HTTP HEADERS
  Content-type
  Expires
  Cache-Control
  Pragma: no-cache
  Location
  More Headers
META TAGS
HTTP-EQUIV Meta Tags
NAME Meta Tags
HIDDEN FIELDS
STYLESHEETS
  Simple Formatting
  Stylesheet Classes
  External Stylesheets
  Choose Your Style
FRAMES
  How Do They Work?
  Frames Examples
  Uses for Frames
THE BASE OF THE WEB

Chapter 2: A CLOSER LOOK AT JAVASCRIPT
WORKING WITH FORMS
  Form Validation
  Form Field Manipulation
  Form Submission
OTHER JAVASCRIPT TRICKS
  JavaScript Hyperlinks
  Changing Window Status
DEBUGGING JAVASCRIPT
  Alert
  Try Netscape for Clearer Error Messages
TRIMMING BLANKS FROM CHARACTER DATA
INCLUDING JAVASCRIPT SOURCE BY REFERENCE
JAVASCRIPT—FRIEND, NOT FOE

Chapter 3: HTTP CONFIGURATION
MAP, EXEC, AND PASS—THE BASICS
  Map
  Exec
  Pass
  Order Makes a Difference!
DENIAL OF SERVICE (DOS) PROTECTION
  The AS/400 Advantage?
  DoS Configuration Directives
  Trust
PROTECTION
THE PROTECTION AND PROTECT DIRECTIVES
  AuthType
  Server ID
  PasswdFile
  Mask
  A Protection Example
PROTECT
LOGGING
  LogFormat
  AccessLog
  RefererLog
  ErrorLog
  CGIErrorLog
  AgentLog
  Log Cleanup
SPECIFYING CUSTOM ERROR PAGES
  The ErrorPage Directive
RUNNING MULTIPLE WEB SITES
  Virtual Hosts (Host Headers)
  Multiple Servers
ADDTYPE
CONCLUSION

Chapter 4: THE ILE HANDBOOK
WHAT IS ILE?
THE KEY PIECES TO ILE
  Subprocedure
  Module
  Service Program
  Binder Language
  Binding Directory
  Activation Group
ILE TERMS FURTHER EXPLAINED
  Subprocedure
  Module
  Service Program
  Binder Language
  Binding Directory
  Activation Group
BASIC ILE EXAMPLES
  ILE Module Says Hello!
  Hello and Goodbye
MODULAR CONCEPTS AND THE NEXT STEP
BIND BY REFERENCE
  ILE Service Program Says Hello!
  Binder Language and Signatures
  Examining Signatures
  Your Own Signatures
SIMPLE COMPILING WITH BINDING DIRECTORIES
SUBPROCEDURE PARAMETER KEYWORDS
SUBPROCEDURE DESIGN
GROUPING SUBPROCEDURES
INTO MODULES OR SERVICE PROGRAMS
FINAL THOUGHTS ON ILE

Chapter 5: USING SQL FOR EASIER RECORD SELECTION
WHAT IS SQL?
  SQL Commands
UPDATE and DELETE
  SELECT Your Data
SQL AND RPG—EMBEDDED SQL
  The SQLRPGLE Member Type
  SQL and Cursors
EMBEDDED SQL
DYNAMIC SQL
  A Simple Dynamic SQL Script
  Positioning with Dynamic SQL
AN SQLRPGLE EXAMPLE
  Definitions
  The Main Processing
  The DYNSQL Program in Action
SELECTING AND SORTING
  A Look at the Application
  A Look at the Code
  First Things First
  Displaying the Data
  Building the SQL Statment
  Displaying the Form
  Last Things Last
SQL, YOUR SECRETWEAPON

Chapter 6: CGI APIS: A SECOND LOOK
QTMHCGI, MEET QZHBCGI
A VISIT TO SOME OlD FRIENDS
  QtmhWrStout—Write Standard Output
  QtmhGetEnv—Get Environment Variable
  QtmhRdStin—Read Standard Input
  QthmCvtDB—Convert to DB
  The Input String Parameter
  QthmPutEnv—Put Environment Variable
THE NEW KIDS ON THE BLOCK
  CGI Parse (QzhbCGIParse)
  Other QZHBCGI APIs

Chapter 7: MORE WEAPONS FOR YOUR e-RPG ARSENAL
F.HTTPSTD—STANDARD HTTP FUNCTIONS
  The #WrStout Wrapper
  The #GetEnv and #GetEnv2 Wrappers
  The #RdStin and #RdStin2Wrapper
  The #CvtDB Wrapper
  The #PutEnv Wrapper
  The #CGIParse Wrapper
F.IFSHTML—READ FROM THE IFS
  An Introduction to the IFS
  Back to F.IFSHTML
  The F.IFSHTML Code
F.SSI—SERVER-SIDE INCLUDE FUNCTIONS
  #IncludeV—Include Virtual
  #IncludeF—Include File
  #EchoV—Echo Variable
  #ExecCGI—Execute CGI as SSI
  Simple Yet Effective
F.STRING—STRING-MANIPULATION FUNCTIONS
  #CtoN—Convert Character Values to Numeric
  #Replace—Replace Character(s)
  #ToUpper and #ToLower—Convert to Upper/Lowercase
  #ZChar—Zero-Suppress a Character
  #Len—Return the Length of a String
ROLL YOUR OWN

Chapter 8: E-RPG COOKIES
COOKIES—THE GOOD AND THE BAD
E-RPG'S RECIPE FOR COOKIES
  Start with a Dollop of Research
  Add a Cup of ILE
  Combine and Bake
A COOKIE SAMPLE
FORTUNE COOKIES

Chapter 9: TIPS AND TECHNIQUES
THE INTEGRATED FILE SYSTEM (IFS)
  The “root” File System
  The /QSYS.LIB File System
  The /QDLS File System
  The /QOpenSys File System
  The Rest of the IFS
USING FTP
  FTP Commands
  FTPing with the Correct Name Format
THE WORKSTATION GATEWAY INTERFACE (WSG)
DEBUGGING E-RPG PROGRAMS
VERY VERBOSE HTTP SERVER
USING E-RPG TO REPORT ERRORS
  The ERRORFORM Program
  The ERRORFORM Source
SERVER SIDE INCLUDES
  Instructing Your Server to Allow SSI
  SSI Goes to Work
  SSI, a Building Block
SHARE YOUR TIPS

Chapter 10: A PRACTICAL EXAMPLE
WELCOME TO MY SITE!
WHAT TO LOOK FOR
SHOW ME THE CODE!
  The Welcome Page
  The Stylesheet
  The Item File
  The Shopping Basket File
  The SHOP1 e-RPG Program
  The SHOP2 e-RPG Program
  The SHOP3 e-RPG Program
  The SHOP4 e-RPG Program
  The SHOP5 e-RPG Program
YOUR ASSIGNMENT

Chapter 11: COOL E-RPG APPLICATIONS
THE GET URI (GETURI) COMMAND
  Socket Communications
  Capturing Data from the Socket
  The GETURI Command
  The GETURI CLP Program
  The GETURI RPG Program
  More to the Story?
A SIMPLE E-RPG COUNTER
UPLOADING FILES WITH E-RPG
  The Upload Web Page
  Reading Stream Data
  Processing the File Headers
  Writing and Cleanup
TAKE A BREAK

Chapter 12: GREENYAK!
GREENYAK! THE INTERACTIVE WEB-CHAT CLIENT
  Page Design
  The Files
  The Frames
  Section 1: The Header
  Section 2: The List of Active Users
  Section 3: The Conversation Text
  Section 4: The Chat Input
  The CHATEXIT Program
  Keeping It All Moving
GO CHAT!

Chapter 13: E-RPG, MORE THAN HTML!
E-RPG DOES XML!
  What Is XML?
  e-RPG and XML
USING E-RPG TO COMMUNICATE WITH HANDHELD DEVICES
  Handheld Device Markup Language (HDML)
  Wireless Markup Language (WML)
THE FUTURE OF E-RPG

APPENDIX
INDEX
Related titles
Advanced Guide to PHP on IBM iAdvanced Guide to PHP on IBM i
Advanced, Integrated RPGAdvanced, Integrated RPG
Developing Web 2.0 Applications with EGL for IBM iDeveloping Web 2.0 Applications with EGL for IBM i
Flexible Input, Dazzling Output with IBM iFlexible Input, Dazzling Output with IBM i
HTML for the Business DeveloperHTML for the Business Developer
JavaScript for the Business DeveloperJavaScript for the Business Developer
IBM i Programmer's Guide to PHP, TheIBM i Programmer's Guide to PHP, The
 
  Special Offer Code  
Enter your Special Offer Code here:
  Search for  

  Our Products  
Browse all »»
DB2 9 Fundamentals: Certification Study Guide (Exam 730)
IBM System i APIs at Work
Driving the Power of AIX

If download option is selected, Adobe Acrobat 5.0 or later is required to read our e-books*


Windows PC, Mac OS9/OSX, and Linux