1) How to retrieve RRN through RPG ?
2) How to pass parameter by value ?
3) How to trap the error through the RPG/400
Answers were Sorted based on User's Feedback
Answer / swetha p rao
1. File information Data Strucutre
2. Using Parm
3. Monitor
On-Error *All
Endmon
| Is This Answer Correct ? | 20 Yes | 4 No |
Answer / zhang
1. in F specification, use RECNO keyword.
2.
3. Use error capture subrountine, *PSSR
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / deepu
1.USING SETLL OR CHAIN BY GIVING RRN IN FACTOR ONE,OR
SPECIFY RECNO KEYWORD IN FILE LEVEL.
2.USING CALL AND PARM
3.USING ON-ERROR OPCODE
| Is This Answer Correct ? | 8 Yes | 5 No |
Answer / vishal
using recno(var) keyword in f spec where var is a variable
to store rrn.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / guest
1 we can retrieve RRN through RPG by SFLRCDRRN along with
dds
3. we can trap the error through the RPG/400 by PSSR, INFDS
| Is This Answer Correct ? | 5 Yes | 4 No |
Answer / kumar
1) using CHAIN OR SETLL
EX : FSAMP IF E DISK
C 5 CHAIN SAMP
FLD DSPLY
EVAL *INLR=*ON
2) Using call and parm
3)Indicators, infds(file information datastructure) *pssr
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / girish kulkarni
1) Through CHAIN opcode it is possible , give RRN in Fact1
2) Write the value in Fact2 of Parm Opcode and name of
parameter in result field
3) Through the program status data structure or File
information data structure
| Is This Answer Correct ? | 4 Yes | 14 No |
We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?
How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?
I know whole thing ab't Arrays related to declaration..can anyone tell me what exactly use of array or anyone faced a situation where he found use of array must....
Can someone tell me tell me what is meant by message wait...?
Can we used ovrdbf command after the opnqry file if yes then What will be out put of your program?
what is edit word and edit code
RPG/400 faqs?
What is the syntax of passing parameters to a procedure by value?
In how many ways a session/device error occurs,,, and what is the remedy for it?
Write a program to display prime numbers between 1 to 100 using RPGLE.
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
How to read alternative records in a pf by using rpg?