1.Can any body share me about thease opcodes with example
please.Im new for AS/400.Could u please tell me in real
senario?
1.TESTN,
2.EVAL
3.EVALR,
TIME,
4.MONITOR
5. ENDMON
6.ON-ERROR
7.COMMIT
ROLLBACK?
Answer Posted / sumit gupta
TESTN:- this opcode test whether the variable placed at
result field is numeric and return the high(HI) indicator
value as '1'. Rest LO and EQ will remain off.
Eval:- This opcode is applicable for only same type of
character. Eg:- if you want to move a character value to
numeric value then IT WILL THROUGH COMPILATION ERROR.
Bydefault, eval opcode will move from left. For eg:- let
abc=' ' then
eval abc='AAA' abc will be 'AAA '
EVALR:- same as previous diffrence is right adjust.
TIME:- This opcode will return the system time of day.
MONITOR:- this opcode is used to monitor the error in rpgle
program.
ENDMON:- This opcode is used in conjunction with MONITOR
opcode.
ON-ERROR:- This is used again wilt monitor and endmon opcode
MONITOR
ON-ERROR
ENDMON
COMMIT:- This opcode is used to commit the changes in the
file.
COMMMIT keyword is used in F-specs like
Fabc UA F DISK COMMIT(*IN03)
:
:
C If *in03='1'
C COMMIT
C ELSE
C ROLLACK
C ENDIF
If Indicator 03 is '1' then commit all the changes done in
the database file. Else rollback is done onto that database
file.
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
What is the difference between copybooks and subprocedures in as400?
What are the types of identifiers?
what is an online rpg?
How to call one program from another program in RPG? please help me with the code
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
How can we override a file during runtime in rpg?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
How can we know running job is batch or interactive?
How to select highest score of each subject or how to select highest income of every month?
What is the purpose of record level identifier?
What is file identifier where we can use?
How many program bind in one module....
How to write record if no field or the field are different in physical file in rpgle ?
what is a rpg?