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 |
One of the job in subsystem is in Running status,expected time to complete this job is 2 minutes. But from last 5 -10 minutes this job is still in running status....What are the possible reasons...and What are the actions i need to perform to check this...?
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
i'm working on progA , in that program i want to see the userids of the users who work on this program?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
What is the syntax of passing parameters to a procedure by value?
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
If I have a file with 5 record and that file has 2 Key field and I want to read the unique record of the file then how can we achieve it?
Hello, I want to extend a length of field in my Display file(Subfile). Please suggest the possible steps. Thanks
What is the purpose of record level identifier?
how to change the length of the field in a physicalfile?
Mr.Sidc sirfor my question{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} you have answered using MOVE opcode,can you illustrate me with a small example sir very kind of you.
What is the RPG cycle?