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

how do I declare a table or array in rpg iv?

0 Answers   IBM,


What is the difference between iter and do?

0 Answers  


can you debug ile rpg program using isdb?

0 Answers   IBM,


two attributes which govern the excecution of a job>>>>??

2 Answers   CTS,


Write a program to display prime numbers between 1 to 100 using RPGLE.

1 Answers  






how do u track msg in cl pgm???

1 Answers   CTS,


What is the syntax of passing parameters to a procedure by value?

1 Answers  


How can i keyed a flat file in RPGLE

5 Answers   IBM, Wipro,


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,


Can AnyOne tell me how to read join logical file in rpg from starting to end?

2 Answers  


suppose one file is used by 100 user and file is locked by 100 user, what are the impact analysis?

1 Answers  


RETRIVING DELETED RECORDS :- I'm frequently asked how to retrieve deleted records from an unjournaled physical file when the deleted records have not yet been removed from the file. Utility UNDEL lets you undelete records in a physical file. This public domain program is available in CISC and RISC versions, and the complete source code is available for download at: UNDEL for AS/400 Save File (RISC): http://www.as400network.com/sharewarefiles/undelris.zip UNDEL for AS/400 Save File (CISC): http://www.as400network.com/sharewarefiles/undel.zip UNDEL for AS/400 Save File (Source code): http://www.as400network.com/sharewarefiles/undelsrc.zip The utility takes advantage of the fact that deleted records in physical files are only flagged as deleted, and the record data still exists until it is overwritten or the file is reorganized with a utility such as RGZPFM. UNDEL simply reads the deleted record, then reuses the record by writing over it with the new record (thus eliminating the flag for the deleted record). Some homegrown and commercial utilities copy the file containing undeleted records to a save file, then use a program to read the save file, which contains live and undeleted records, to a file to undelete the records. The UNDEL utility is superior to the SAVF technique because there's no need to copy the file to a save file, which is especially important for really large files. When run, UNDEL displays the physical file records in their unformatted, raw text form. You can either position the display to a given relative record number or use F19 or F20 to find the previous and next deleted record, respectively. The utility also includes online help, which is almost unheard of for free utilities. Other utilities include the ability to undelete records. You can use the RTVDLTRCD command in the old QUSRTOOL (no longer supported by IBM). QUSRTOOL is now a commercial product called TAA Productivity Tools ( http://www.taatool.com ). The free file editor WRKDBF has a built-in undelete capability ( http://www.wrkdbf.com ), and several commercial file editors can undelete records. For a complete list of file editors, go to http://www.sourcebook400.com, select "Programmer Tools" under "Product Category," then select "File Editors."

0 Answers  


Categories