+ TRIM(%EDITC(Amt * 12 + TRIM(%EDITC(Amt * 12 Note: Returns a character result representing the edited number after applying and edit code.ĮVAL Sal = ‘The annual salary is ‘ Sal = ‘The annual salary is ‘
+ ‘ on ‘ + %CHAR(Date) + ‘ on ‘ + %CHAR(Date) Note: Converts the value of the expression from graphic, UCS-2, numeric, date, time,ĮVAL Result = ‘It is ‘ + %CHAR(Time) Result = ‘It is ‘ +%CHAR(Time) Note: Controls the number of times a group of operations are processed.įOR I = 1 to %LEN(Field) FOR I = 1 to %LEN(Field) ĮVAL Factor = Factor + 1 Factor = Factor + 1 WHEN Age >= 20 and Sex = ‘M’ WHEN Age >= 30 and Sex = ‘M’ WHEN Age >= 30 and Sex = ‘F’ WHEN Age >= 30 and Sex = ‘F’ WHEN Age >= 20 and Sex = ‘M’ WHEN Age >= 20 and Sex = ‘M’ WHEN Age >= 20 and Sex = ‘F’ WHEN Age >= 20 and Sex = ‘F’ In the last stage of the SELECT, the ‘OTHER’ part is optional. Note: Instead of Nesting Ifs use a SELECT/ENDSL or an ELSEIF above. IF Age >= 20 and Sex = ‘F’ IF Age >= 20 and Sex = ‘F’ ĮLSEIF Age >= 20 and Sex = ‘M’ ELSEIF Age >= 20 and Sex = ‘M’ ĮLSEIF Age >= 30 and Sex = ‘F’ ELSEIF Age >= 30 and Sex = ‘F’ ĮLSEIF Age >= 30 and Sex = ‘M’ ELSEIF Age >= 30 and Sex = ‘M’
In the last stage of the ELSEIF, the ‘ELSE’ part is optional. Note: Instead of Nesting Ifs use an ELSEIF or a SELECT/ENDSL below. Note: The expression is evaluation and the result is placed right-adjusted in the result field.ĮVALR Name = ‘Jimmie ‘ EVALR Name = ‘Jimmie ‘ ĮVALR Name = %TRIMR(‘Jimmie ‘) EVALR Name = %TRIMR(‘Jimmie ‘ ***After the EVAL below, the value of Chars contains ‘ab****ghijklmno’ĮVAL %SUBST(Chars:3:4) = ‘****’ %SUBST(Chars:3:4) = ’****’ Total *= Count //Short for previous exampleĮVAL Total = Total / 7 Total = Total / 7 ĮVAL(H) Interest = Rate * Amt EVAL(H) Interest = Rate * Amt //EVALused for half adjustĮVAL A = %TRIMR(‘Hi ‘) + A = %TRIMR(‘Hi ‘) + %TRIML(Chars) Total -= Count //Short for previous exampleĮVAL Total = Total * Count Total = Total * Count IF NOT %EOF(Rickfile) IF NOT %EOF(Rickfile) ĮVAL Data# = Data# + 1 Data# = Data# + 1 ĮVAL Total = A * (B – 1) Total = A * (B – 1) ĮVAL Total = Total – Count Total = Total – Count Note: In free format the EVAL operation is not required sometimes.
#Rpgle edit word for free#
Note: For free format always use the actual name of the file and not the record format name.ĭOW NOT %EOF(Rickfile) DOW NOT %EOF(Rickfile)
#Rpgle edit word code#
Note: In free format end a line of code with a semicolon ( ), allĬode within structures are indented, and start a free format program with /FREE Note: Some free format examples only work with V5R1 and higher.
#Rpgle edit word pdf#
For example, the following image is a copy of the original PDF we opened in Word.Some of the more useful opcodes follow, but not all. Many of the layout attributes, however, are compatible and transfer from the PDF directly into Word with no problems. Be aware of these limitations so you can plan for the outcome and make adjustments as needed. These additional text blocks often land in the middle of paragraphs or tagged on to the end. Microsoft suggests that text documents transfer and reflow better than documents heavily laden with charts and graphics, tags, bookmarks, footnotes, and/or track changes.
#Rpgle edit word software#
That’s because margins, columns, tables, page breaks, footnotes, endnotes, frames, track changes, and special format options such as font effects (among other things) may differ between the original software used to create the PDF file (such as InDesign or Microsoft Publisher) and Word. NOTE: The message warns that large files take longer to load, and the layout in Word may not look exactly like the original PDF.