In how many ways a session/device error occurs,,, and what is
the remedy for it?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE
wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?
How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?
What is the difference between iter and do?
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?
how to retrieve RRN value in RPGLE program
while i am using the dspmsg command on comman line in Mocha am getting error like Not authorized to message queue message my messagequeue Name? can anybody help me how to change my message queue Am anable to see my messages in message queue
1) How to declare a file? 2) How to define a display file? 3) How to monitor error messages in RPG? 4) How to find the attributes for subfiles? and what is the DDS for subfiles?
Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?
How can we search particular records from the database file in RPG. For example, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular 'NAME' field. How can we do the above using SEARCH criteria other than using the IF cond?
what is the rpg system?
Difference between creating a report using Printer file and WRKQRY(Query Report) ?