![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 28 Jan 2003 @ 23:44:35 GMT
yes..this is working... but i am not able to set environment variable from perl.. i have following perl script
-------
#!d:\Program Files\NCR\TDAT\LPDE\PERL\BIN\MSWIN32-X86\perl -w
print "Running Mload Scripts\n";
system("set ENV_VAR=mdl_data.txt");
system `mload
in mload.txt i have following lines....
----------------------------------
.accept fname FROM ENVIRONMENT VARIABLE ENV_VAR;
.import infile &fname
layout mylayout
format text
apply myinsert ;
--------------------------------
but following is not working in perl
system("set ENV_VAR=mdl_data.txt");
but when i do from command line like following working fine.... set ENV_VAR=mdl_data.txt how to set environment variables from perl? Thanx
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| | |||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | |||||||||||||||||||||||||||||||||||||||||||||||||||