2/27/2023 0 Comments Dsppgmref file usage![]() ![]() ![]() 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 allow 3 positions New Opcodes:ģ 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. RPGIV BITOFF CHECKR COMMIT DEFINE DELETE EXCEPT LOOKUP OCCUR READPE RETURN SELECT SETOFF UPDATE UNLOCK WHENXXįactor1,Factor2 & Result each increased to 14 characters Extended Factor2 allows free-format expressions Field length increased to 5 positions Decimal Positions increased to 2. 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Ģ 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 BITOF CHEKR COMIT DEFN DELET EXCPT LOKUP OCCUR REDPE RETRN SELEC SETOF UPDAT UNLCK WHXX 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 Field names & Array Names Length of Character Variable No of Possible array elements No of Possible Subroutines No of Decimal Positions No of files per program ![]() 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. RPG IV is more readable Allows for greater application modularity with static binding which means there are fewer external calls. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |