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 |
can anyone say,what is the use of operation extended H/N/P?
Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?
How can we know running job is batch or interactive?
IN RLU what are the record level keyword is used?
A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u have 1000 lines of code, with out debugging , how can u find that error??? Is there any command to find errors in pgm???
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?
Q:HI friends accually ihave one problem plesase let me know the alternate code of this code. Related field description of code: Add a field, CALvsPRD, "Calendar Day Starts Before/After Production Day" to the parameter set WRKORDER which accepts values 'A' or 'B' o B = Calendar Day Starts Before Production Day o A = Calendar Day Starts After Production Day o Any other value indicates the production and calendar dates are always the same. code: Automatic Execution Of *INZSR Subroutine /Z01 * retrieves WRKORDER field values. /Z01 * Calculate default Production Date and return it to caller. /Z01 * Production date defaults to system date /Z01 C Eval P@Pdate = %DATE() /Z01 * unless Calendar date starts Before PDN(production) date and /Z01 * system time is before PDN Start Time then /Z01 * PDN date is yesterday. /Z01 C If W@CALvsPRD = 'B' and /Z01 C %TIME() < %TIME (W@Strtime) /Z01 C Eval P@Pdate -= %Day(1) /Z01 * unless Calendar date starts After PDN date and /Z01 * system time is *GE PDN(production) Start Time then /Z01 * PDN date is tomorrow. /Z01 C ElseIf W@CALvsPRD = 'A' and W@Strtime > *Zero and /Z01 C %TIME() >= %TIME (W@STrtime) /Z01 C Eval P@Pdate += %Day(1) /Z01 C EndIf /Z01 C Eval *InLr = *On
do you use message subfiles? What are the necessary keywords required coding a message subfile?
How to select highest score of each subject or how to select highest income of every month?
How can we call CL program to RPG? How many number of parameter we can pass
I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)
please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?