In how many ways a session/device error occurs,,, and what is
the remedy for it?

Answers were Sorted based on User's Feedback



In how many ways a session/device error occurs,,, and what is the remedy for it?..

Answer / srikanth

Session Device error occurs when try to display empty subfile. To avoid this, on indicator associated with SFLINZ keyword. Another case session device error occurs when EXFMT subfile control record with out subfile control indicator is on.

Is This Answer Correct ?    9 Yes 0 No

In how many ways a session/device error occurs,,, and what is the remedy for it?..

Answer / krisalli

some more cases...

- Incorrect record number in subfile SFLRCDNBR or SFLSIZ field.
- In program code, at display (EXFMT) subfile code, check the value of RRN. If is zero and you are making on the SFLDSP indicator *ON or it is un-conditional and doing display subfile. Then it will give you the same error.

- Trying to show empty subfile.

- Field and position in Display file DDS is not correct.

- The keywords are not properly organized in Display file DDS.

- Trying to write more than 9999 record on the Display file for Load All subfile

Is This Answer Correct ?    6 Yes 1 No

In how many ways a session/device error occurs,,, and what is the remedy for it?..

Answer / krisall

to add to Srikanth,

session/device error that occur in rpg and which I've faced
is, if you have declared data structure indicators in data
section but not used INDDS keyword and that data structure
along with the WORKSTN files.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More RPG400 Interview Questions

what r drawbacks of OPM? Why do we go for ILE RPG?

1 Answers  


How to read data from Nth member of a physical file containing some X number of members in it? "Provided member names are unknown"

4 Answers  


What you have to do in the display file when you are using message subfile?

1 Answers  


How do you call procedures in ILE?

3 Answers  


I have 1000 records in a file. I would like to generate 10 identical reports from this record with same format (structure of records) how do I do this?

1 Answers   IBM,






How would display prime numbers using CL program?

0 Answers   Hexaware,


How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??

1 Answers  


Hi, Can any body tell me ur experience on this questions? Questions: 1.what is the use of SFLRCDNBR other than subfile page display? 2.Which of the following operation cannot be used in conjuction with a file coded as device type disk?

1 Answers  


Hi,This is raju.Can any body give me the real experience answer for this question? 1.What is the significance of *MAP and *DROP in the CPY command?

3 Answers  


What is the purpose of FRCDTA keyword?

3 Answers   IBM,


what are the key words you must use when using a subfile?

0 Answers   IBM,


Suppose I have 3 jobs a b and c. I want to submit b after successful completion of a and want to submit c after successful completion of b. Without using job scheduler or job queue, how can I do that through cl program?

1 Answers  


Categories