TechTips / RPG


TechTalk: Make Your RPG Programs More Flexible PDF Print E-mail
Tips & Techniques - RPG
Written by Bruce Knoll   
Wednesday, 31 October 1990 18:00

You can call any RPG program that receives parameters, with or without actually passing parameters to the program - by using the program status data structure and the *PARMS keyword within your I-specs. The program status data structure is set up like any other data structure except you specify an 'S' in column 18. The subfields of the data structure are defined by special keywords. In this case we use the keyword *PARMS (see 1). We assign field name INPARM to contain the value that is returned through the *PARM keyword. Whatever the field name assigned to the *PARM keyword, it will be a three-digit numeric field. It will contain the number of parameters that are passed to your RPG program from the calling program. If the value is zero (no parameters passed), you cannot access the name of the field that is in your *ENTRY-PLIST.

Last Updated on Monday, 18 May 2009 16:15
Read more...
   
User Rating: / 1
PoorBest 
     
TechTalk: Making Nested Statements in RPG/400 Mor PDF Print E-mail
Tips & Techniques - RPG
Written by Jonathan Vote   
Saturday, 30 June 1990 18:00

Because of the inability to indent in RPG, reading a section of code nested several layers deep can be a real pain. You can make things a little more legible by using positions 1 to 5 of the source statement as level number markers since SEU leaves these positions blank. 6 illustrates how I do this.

Last Updated on Monday, 18 May 2009 16:15
Read more...
   
<< Start < Prev 11 12 13 14 15 16 17 18 19 20 Next > End >>

Page 20 of 20

WHITE PAPERS

The following White Papers can be found at the MC White Paper Center

 

 


   MC-STORE.COM