RPG TnT
eBook - ePub

RPG TnT

101 Dynamite Tips 'n Techniques with RPG IV

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

RPG TnT

101 Dynamite Tips 'n Techniques with RPG IV

About this book

Providing solutions to dozens of technical dilemmas, this guide features 101 tips for evaluating and circumventing RPG IV's shortcomings to help end users create extensions and program features that are not available through standard RPG IV—the primary programming language used for business application development on IBM's midrange computer systems. Using nearly 20 years of AS/400, iSeries, and System i experience, the author's insights into RPG IV extensions and System i MI instructions allow even the most inexperienced programmer to implement wrappers using code directly from the book.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access RPG TnT by Bob Cozzi in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Languages. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Title Page
  2. Copyright Page
  3. Table of Contents
  4. Dedication
  5. Acknowledgments
  6. Conventions Used in this Book
  7. 1 - Prototype Everything
  8. 2 - Prototyping a Call to a Program
  9. 3 - An Alternative to QCMDEXC
  10. 4 - Subprocedure-style Entry Parameter List for Programs
  11. 5 - Add NOMAIN to the Header Specification of Secondary Modules
  12. 6 - Monitoring C Function Runtime Errors
  13. 7 - Use PSDS to Retrieve Job Information
  14. 8 - Use QUALIFIED Data Structures
  15. 9 - Copy Subfields Between Qualified Data Structures
  16. 10 - Nested Data Structures
  17. 11 - *ALL and *ALLX ‘xx’—The Repeating Constants
  18. 12 - Embed Compiler Parameters into Source Members
  19. 13 - Avoid “Surprise Initialize”
  20. 14 - Qualified Externally Described Files (1)
  21. 15 - Qualified Externally Described Files (2)
  22. 16 - Calculate the End-of-Month Date
  23. 17 - Using Free-Format Comments in Fixed-Format Code
  24. 18 - Get Day-of-Week Name
  25. 19 - Run CL Commands from an FTP Client
  26. 20 - Put Your Program to Sleep
  27. 21 - Use VARYING to Improve Performance
  28. 22 - Converting Numeric to Character with %CHAR
  29. 23 - Converting Character to Numeric
  30. 24 - Easier Text Concatenation
  31. 25 - Create an Auto-Extend User Space
  32. 26 - Declare Data Structures as Arrays
  33. 27 - Initialize Fields to Job Date, System Date, or User Profile
  34. 28 - Use C Runtime Functions in RPG
  35. 29 - Compare and Ignore Case
  36. 30 - Free Online Prototypes for APIs, C Functions, MI Instructions
  37. 31 - Checking for Valid Dates with the TEST OpCode
  38. 32 - Using the Secret ‘X’ Edit Code to Convert Numeric to Character
  39. 33 - %ADDR—Address of a Variable
  40. 34 - Understanding API Documentation—Bin(4) Parameters
  41. 35 - Understanding API Documentation—Pointer Parameters
  42. 36 - Better Performance when Accessing User Space Data
  43. 37
  44. 38 - Sending a Program Message in RPG
  45. 39 - Retrieve the Function Key Used on a Display File
  46. 40 - Copying More than 64k of Data
  47. 41 - Use %XFOOT with %LEN
  48. 42 - Use %SUBARR to Subscript Arrays
  49. 43 - Use EXTFILE to Avoid Needless Overrides
  50. 44 - Subprocedure Parameters Rule 1—Default Behavior
  51. 45 - Subprocedure Parameters Rule 2—CONST Parameters
  52. 46 - Subprocedure Parameters Rule 3—VARYING
  53. 47 - Subprocedure Parameters Rule 4—Optional Parameters
  54. 48 - Subprocedure Parameters Rule 5—Skipping Parameters
  55. 49 - Data Structure Templates
  56. 50 - Boolean Assignment
  57. 51 - Creating Even-Length Packed Fields
  58. 52 - Sorting Arrays with SubArrays
  59. 53 - Convert between Lower- and Uppercase Letters
  60. 54 - Overlapping Data Structures
  61. 55 - Dynamic Arrays—Dynamically Allocated Array Elements
  62. 56 - Converting Date Formats with the QWCCVDT API
  63. 57 - Converting Date Formats with the CEExxxx APIs
  64. 58 - Calculated Day of Week—Zeller’s Congruence
  65. 59 - Calculated Day of Week—API Method
  66. 60 - LIKE Keyword Misbehavior—Zoned to Packed
  67. 61 - Default Data-type: Not So Consistent
  68. 62 - Debugging Variables that Have Debugger Command Names
  69. 63 - Viewing Field Contents in Hex in Debug
  70. 64 - Display the First Few Bytes During Debug
  71. 65 - Display Contents of Local Variables with %LOCALVAR
  72. 66 - Convert Character to Numeric—Using MI
  73. 67 - Converting To and From Hexadecimal
  74. 68 - Using Decimal Fields as Real-Date Values
  75. 69 - Check Object Existence
  76. 70 - Supporting Qualified Object Syntax
  77. 71 - Explained: Bytes Provided, Bytes Available, and Bytes Returned
  78. 72 - Converting To or From ASCII and Other Character Sets
  79. 73 - Register an Exit Routine for a Program or Service Program
  80. 74 - Specifying IFS File Names Correctly
  81. 75 - Checking if IFS Files Exist
  82. 76 - RC4 Encryption Using Encryption APIs
  83. 77 - Writing Text to the Joblog
  84. 78 - Reading Save Files with RPG IV
  85. 79 - Encrypting Save Files in RPG IV
  86. 80 - Global and Local Variables
  87. 81 - Create Source Members Used to Create Service Programs
  88. 82 - Binder Source for a Service Program
  89. 83 - Creating Binder Language the Easy Way
  90. 84 - Linking to a Service Program from an RPG IV Program
  91. 85 - Swap Bytes—Big Endian to Little Endian in RPG IV
  92. 86 - Dumping the Call Stack with Qp∅zDumpStack
  93. 87 - Using Subprocedure Return Values
  94. 88 - How Does the %EDITC (Edit Code) Built-in Function Work?
  95. 89 - Solid Parameter Testing
  96. 90 - Create ASCII Text Files on the IFS
  97. 91 - High-level Math in RPG IV
  98. 92 - Program Described Print File with Dynamic Spacing
  99. 93 - Aligning or Centering Text in a Character Field
  100. 94 - Debug a Batch Job
  101. 95 - Find and Replace with Regular Expressions
  102. 96 - Use DLTOVR when Using OVRDBF OVRSCOPE(*JOB)
  103. 97 - Use a FOR Loop to Allow Multiple Exit Points
  104. 98 - Source-level Debugger for Legacy RPG III
  105. 99 - Set and Get Environment Variables from within RPG IV
  106. 100 - Simple Scan with Ignore Upper/Lowercase
  107. 101 - Set the CLASSPATH for Java within RPG IV
  108. Epilogue
  109. Appendix - Source Member RPGTnT in QCPYSRC