Hi ,
The following is my code of the first FEX procedure
-SET &TODAY=&YMD;
-SET &AJB = GETUSER(A8);
-TYPE USER &AJB
-TYPE &DATE
-SET &SESSIONID = &AJB || &TODAY || 'AAAAAAAAAAAAAAAAAAAAAAA'
SQL SQLMSS
EX GOA01_SQL.dbo.spgoa_WF_Report_Fill_temp_0421 ,
'&SESSIONID',
'&D1','&D2' ,0, 1, '&TEXTAREA1';
END
-HTMLFORM WF042501
This is what I am doing in the first FEX. I am creating a Session ID and executing a SQL stored procedure using the session ID as one of the parameters. Then I am calling a HTML form named WF042501.
I have a push button called 'Close' in the above HTML form. When I click on the push button, it executes a FEX procedure.
The coding of that procedure is the following
-SET &TODAY=&YMD;
-SET &AJB = GETUSER(A8);
-TYPE USER &AJB
-TYPE &DATE
SET SQLENGINE = SQLMSS
SQL SET AUTODISCONNECT ON FIN;
SQL SET AUTOCOMMIT ON FIN;
SQL SET PASSRECS ON
SQL
EX GOA01_SQL.DBO.spgoa_DropUserTables, '&SESSIONID';
COMMIT WORK;
END
SQL COMMIT WORK;
Here what I am doing is that I try to use the Session ID created in the first FEX procedure to execute another SQL stored procedure. Now, my problem is that I am not able to use that session ID in this FEX procedure. How do I get that Session ID into this procedure.
Thanks
Thambaiya
The following is my code of the first FEX procedure
-SET &TODAY=&YMD;
-SET &AJB = GETUSER(A8);
-TYPE USER &AJB
-TYPE &DATE
-SET &SESSIONID = &AJB || &TODAY || 'AAAAAAAAAAAAAAAAAAAAAAA'
SQL SQLMSS
EX GOA01_SQL.dbo.spgoa_WF_Report_Fill_temp_0421 ,
'&SESSIONID',
'&D1','&D2' ,0, 1, '&TEXTAREA1';
END
-HTMLFORM WF042501
This is what I am doing in the first FEX. I am creating a Session ID and executing a SQL stored procedure using the session ID as one of the parameters. Then I am calling a HTML form named WF042501.
I have a push button called 'Close' in the above HTML form. When I click on the push button, it executes a FEX procedure.
The coding of that procedure is the following
-SET &TODAY=&YMD;
-SET &AJB = GETUSER(A8);
-TYPE USER &AJB
-TYPE &DATE
SET SQLENGINE = SQLMSS
SQL SET AUTODISCONNECT ON FIN;
SQL SET AUTOCOMMIT ON FIN;
SQL SET PASSRECS ON
SQL
EX GOA01_SQL.DBO.spgoa_DropUserTables, '&SESSIONID';
COMMIT WORK;
END
SQL COMMIT WORK;
Here what I am doing is that I try to use the Session ID created in the first FEX procedure to execute another SQL stored procedure. Now, my problem is that I am not able to use that session ID in this FEX procedure. How do I get that Session ID into this procedure.
Thanks
Thambaiya