Dear All,
I need help. We Installed Red Hat Enterprise Linux 5 and the following Informix products:
Informix SE version 7.26 UC6R1
Informix 4gl Developer Version 7.32 UC4
Informix 4gl Runtime Version 7.32 UC4
Informix 4gl Compiler RT Version 7.32 UC3
Informix Sql Development Version 7.32 UC4
Informix Sql Runtime Version 7.32 UC4
We are compiling and executing alright but, it is failing to display some forms in the window or probably the cursor is not placed properly. Here is part program declaration and output from the executable:
---From Calling Main Module----------------
COMMAND KEY (A, a) "Amendemployee" "Amend Personal Details for Existing Employee"
CALL RqestEmployee() RETURNING w_manno ----This a call from the calling Module
IF w_manno != " "
THEN
CALL AmendEmplyDetails(w_manno)
END IF
-----Part Program ---------------
FUNCTION RqestEmployee() ------This is the function being called
DEFINE w_manno LIKE viewstaff.manno,
w_surname LIKE personnel.surname,
r_name LIKE personnel.surname,
r_forename LIKE personnel.other_names,
r_title LIKE personnel.title,
w_cnt SMALLINT
OPEN WINDOW win_request AT 5, 2
WITH 16 ROWS , 77 COLUMNS ATTRIBUTE (BORDER)
OPEN FORM RqestEmp FROM "/srs-prps/ppsys/phaseI/forms/RqestEmp" -----This is the form being display
DISPLAY FORM RqestEmp
LET int_flag = FALSE
LET w_manno = " "
LET w_surname = " "
LET GetInput = TRUE
WHILE GetInput
INPUT w_manno,
w_surname
WITHOUT DEFAULTS
FROM manno, -----Accepting input from the screen variable
surname
BEFORE FIELD manno
PROMPT " Select Either Man Number OR Surname - Press Return"
ATTRIBUTE(BOLD) FOR CHAR Answer
AFTER FIELD manno
IF w_manno <> " "
AND w_manno IS NOT NULL
THEN
SELECT COUNT(*)
INTO w_cnt
FROM personnel per,
payrollstatus prs
WHERE per.manno = prs.manno
AND prs.manno = w_manno
IF w_cnt != 1
THEN
PROMPT "No Personnel Record Exists With This Man Number ",
" - Press Return"
ATTRIBUTE(BOLD) FOR CHAR Answer
NEXT FIELD manno
END IF
END IF
END INPUT
-------.per form ---------------------------------------------------
DATABASE FORMONLY
SCREEN
{
Ref:RqestEmp
Man No.[f01 ] Surname [f02 ]
}
END
ATTRIBUTES
f01 = formonly.manno , REVERSE; -----The screen variable
f02 = formonly.surname, UPSHIFT,REVERSE;
END
INSTRUCTIONS
DELIMITERS " "
OUTPUT SCREEN
+-----------------------------------------------------------------------------+
|Transactions: Amend Insert Overtime eXit |
|Amend Payments & Deductions |
+-----------------------------------------------------------------------------+
| Ref:RqestEmp |
| |
| |
| |
| |
| Man No. Surname Segmentation fault
[ppsys@rhino bin]$ |
| | -- Window and Menu displayed
| |
| | -- Cursor should be in Mnno
| |
| | -- field but instead comes up
| | -- with Segmentation fault
| |
| |
| |
+-----------------------------------------------------------------------------+
Would anyone know why I am getting this segment fault ?
Your help is highly valued.
Thanking you in advance.
Regards
Felix Mwango Mutale
I need help. We Installed Red Hat Enterprise Linux 5 and the following Informix products:
Informix SE version 7.26 UC6R1
Informix 4gl Developer Version 7.32 UC4
Informix 4gl Runtime Version 7.32 UC4
Informix 4gl Compiler RT Version 7.32 UC3
Informix Sql Development Version 7.32 UC4
Informix Sql Runtime Version 7.32 UC4
We are compiling and executing alright but, it is failing to display some forms in the window or probably the cursor is not placed properly. Here is part program declaration and output from the executable:
---From Calling Main Module----------------
COMMAND KEY (A, a) "Amendemployee" "Amend Personal Details for Existing Employee"
CALL RqestEmployee() RETURNING w_manno ----This a call from the calling Module
IF w_manno != " "
THEN
CALL AmendEmplyDetails(w_manno)
END IF
-----Part Program ---------------
FUNCTION RqestEmployee() ------This is the function being called
DEFINE w_manno LIKE viewstaff.manno,
w_surname LIKE personnel.surname,
r_name LIKE personnel.surname,
r_forename LIKE personnel.other_names,
r_title LIKE personnel.title,
w_cnt SMALLINT
OPEN WINDOW win_request AT 5, 2
WITH 16 ROWS , 77 COLUMNS ATTRIBUTE (BORDER)
OPEN FORM RqestEmp FROM "/srs-prps/ppsys/phaseI/forms/RqestEmp" -----This is the form being display
DISPLAY FORM RqestEmp
LET int_flag = FALSE
LET w_manno = " "
LET w_surname = " "
LET GetInput = TRUE
WHILE GetInput
INPUT w_manno,
w_surname
WITHOUT DEFAULTS
FROM manno, -----Accepting input from the screen variable
surname
BEFORE FIELD manno
PROMPT " Select Either Man Number OR Surname - Press Return"
ATTRIBUTE(BOLD) FOR CHAR Answer
AFTER FIELD manno
IF w_manno <> " "
AND w_manno IS NOT NULL
THEN
SELECT COUNT(*)
INTO w_cnt
FROM personnel per,
payrollstatus prs
WHERE per.manno = prs.manno
AND prs.manno = w_manno
IF w_cnt != 1
THEN
PROMPT "No Personnel Record Exists With This Man Number ",
" - Press Return"
ATTRIBUTE(BOLD) FOR CHAR Answer
NEXT FIELD manno
END IF
END IF
END INPUT
-------.per form ---------------------------------------------------
DATABASE FORMONLY
SCREEN
{
Ref:RqestEmp
Man No.[f01 ] Surname [f02 ]
}
END
ATTRIBUTES
f01 = formonly.manno , REVERSE; -----The screen variable
f02 = formonly.surname, UPSHIFT,REVERSE;
END
INSTRUCTIONS
DELIMITERS " "
OUTPUT SCREEN
+-----------------------------------------------------------------------------+
|Transactions: Amend Insert Overtime eXit |
|Amend Payments & Deductions |
+-----------------------------------------------------------------------------+
| Ref:RqestEmp |
| |
| |
| |
| |
| Man No. Surname Segmentation fault
[ppsys@rhino bin]$ |
| | -- Window and Menu displayed
| |
| | -- Cursor should be in Mnno
| |
| | -- field but instead comes up
| | -- with Segmentation fault
| |
| |
| |
+-----------------------------------------------------------------------------+
Would anyone know why I am getting this segment fault ?
Your help is highly valued.
Thanking you in advance.
Regards
Felix Mwango Mutale