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

Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?

6 Answers   HSBC,


parameters cannot be passed in which one??

2 Answers   CTS,


I need to generate outfile for object of all the user lib. in the sysmte using cmd DSPOBJD. But this cmd is correcpted in my server,Any body tell me is there any alternative...?

2 Answers  


1. I have2 records in a PF. READ PF DO DSPLY EMPNO RETRN DSPLY EMPNO ENDDO What was the output 2. SETON LR vs RETURN 3. Primary File 4. How to delete a deleted spaces 5. How to read a PF in reverse order in CL 6. I have a object in Lib A, B and C. But it shows in D Lib..Why? 7.

4 Answers   HCL,


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

0 Answers  






what built in function can be used with SETLL.If you want to check whether the search argument is successful or not? Please give me answer with example?

3 Answers  


In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D from B. How would you check the program C has been executed in D?

4 Answers  


The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?

5 Answers  


1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using composite key which rpg code used?

3 Answers   HSBC,


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


is this a rpg channel?

0 Answers   IBM,


What is I90(Insure 90)?

1 Answers  


Categories