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

i 'm new to as/400.in an interview i was asked this question.give a practical example for passing information or data through local data area. I know only that data area is an object used to store tiny bits of data or it can store one value at a time and it is used to store frequently changing values or datas.thats all i know about data area can any one tell me how local data area and user defined data area are used to pass data between jobs with a example or coding.thanks in advance.

2 Answers   CTS,


How do you find whether a job is a batch job or interactive?

4 Answers  


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  


How can you delete records form a file in rpg without using "Delete" OPCODE?

7 Answers  


1.I Have a physical file , i want to read the data from the each and every member of the File in the CL Program.How do you achieve this. 2.How do you do the same in RPG?. do think is it possible to read data from all the members in the RPG?

2 Answers   Cap Gemini,






when will come session device error?

4 Answers   TCS,


what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area value in cl or rpg programming?

2 Answers   IBM, Patni,


Delete FileName at first statement in RPG.

1 Answers  


what is the equivalent keyword for CHAIN opcode ??

7 Answers   TCS,


How can we access Interactive job LDA in Batch Job?. and How we can access a file in interactive QTEMP lib in Batch job?.

4 Answers   IBM,


I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)

3 Answers   Opus,


How to declare the pull button in AS/400..

0 Answers  


Categories