mload got stuck
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


mload got stuck Expand / Collapse
Author
Message
Posted 8/10/2006 11:31:48 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/29/2007 11:08:21 PM
Posts: 6, Visits: 2
Hi ,

I have a mload script that raises the pager if there is any application error table created. I have placed the paging part after the .END MLOAD command as shown below-


/* End the load process. */
.END MLOAD;

/* Signal a pager if E2 is created*/
.IF &SYSUVCNT1 > 0 THEN;
.SYSTEM 'D:\ paging.pl';
.ENDIF;

/* Log off the server. */
.LOGOFF;

As shown below the application error table(program_E2) is created by mload. And the number of rows are captured in the &sysuvcnt variable. The mload got stuck at “ Process Control Statements ” part. This mlaod script is working fine in Test environment and it is giving pager if there is any E2 table created. Please advise.

Thanks & Regards,

Below is an excerpts from the log
--------------------

Target table 1: DW_1.PROGRAM
Number of Rows Error Table Name
============== ========================================================
0 DW_WRK.PROGRAM_E1
2 DW_WRK.PROGRAM_E2

**** 05:33:16 UTY0817 MultiLoad submitting the following request:
BEGIN TRANSACTION;
**** 05:33:16 UTY0817 MultiLoad submitting the following request:
USING Ckpt(VARBYTE(1024)) INS DW_WRK.PROGRAM_LG (LogType, Seq,
MLoadCkpt)VALUES(140, 1, :Ckpt);
**** 05:33:16 UTY0817 MultiLoad submitting the following request:
INS DW_WRK.PROGRAM_LG (LogType, Seq) VALUES (125, 1)
**** 05:33:16 UTY0817 MultiLoad submitting the following request:
END TRANSACTION;
**** 05:33:17 UTY0822 MultiLoad processing complete for this MultiLoad import task.
========================================================================
= =
= MultiLoad Task Complete =
= =
========================================================================
**** 05:33:17 UTY1024 Session modal request, 'DATABASE', re-executed.
========================================================================
= =
= Processing Control Statements =
= =
========================================================================
Post #4872
Posted 8/10/2006 12:14:07 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: PAC and SFT Members
Last Login: Yesterday @ 7:00:28 PM
Posts: 328, Visits: 512
Your example shows a space in the .SYSTEM string - so the OS sees "D:\" as the (invalid) command and "paging.pl" as the argument.

Windows default error handling mechanism is to display a modal dialog box on the desktop (which is why your script hangs at that point). Whenever you are running on an unattended Windows server, it's a good idea to prevent that; for example, explicitly run your "batch background" actions within a command interpreter shell:
.SYSTEM 'cmd /c D:\paging.pl';
Post #4873
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 9:26am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 queries. Compression Disabled.