[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] Call SYSTEM command in SQR
- Subject: Re: [sqr-users] Call SYSTEM command in SQR
- From: Dattatraya Shetty <datta_shetty@yahoo.com>
- Date: Wed, 30 Mar 2005 13:14:38 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Delivery-date: Wed, 30 Mar 2005 16:15:44 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;b=l7tqB0WrA/i9OYSrGnFNy71XLvH6irP++ad8oj4TrHf9Exef8lTjLiPdew/ehJ/NLwJf1fRgMJNx+TC8p/TiOv7+iZqn8R1WnhldLcPhqYFpEYYlG1QJp3cvMP0MXhtDxSmo4J2nakvJjDj6SiMPWty0868vvOQA+Lsw9skY3vM=;
- In-reply-to: 6667
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
Hi Yamuna,
The Second part of the Problem is that FILEPREFIX may be an environment
variable not defined?
In the fist part the $ is missing for an environment variable.
It would help if you let us know what is the excat command you are typing in at
the command
prompt.
e.g
$> ls -tls FMUBSOPT.DAT* > ${FILEPREFIX}Latestfile.dat
is this what you are typing ?
The fact that you are getting a file called Latestfile.dat tells me that the
FILEPREFIX is not defined or you are not keying it correctly what is it ?
HTH
Datta.
yamuna_pandiyan@freddiemac.com wrote:
I am using a program which needs to compare the current data with the
previous data file. the data files are created with date and time stamp.
This program runs once a week, and has to compare the previous weeks data
file to monitor the data changes.
I am using the following command on the Unix box to sort the most recent
file
let $file_list = '{FILEPREFIX}Latestfile.dat'
let $syscmd = '{FILEPREFIX}' || 'ls -lts SAMPLE.DAT >' || $file_list
call system using $syscmd #unix_status
if #unix_status != 0
stop quiet
end-if
The Latestfile.dat file is created in the data directory mentioned under
{FILEPREFIX}. But the file is empty. I would like to send the result of the
command
ls -lts FMUBSOPT.DAT* to the above file.
when I execute the above program in the unix server , I ge the following
error - {FILEPREFIX} : cannot execute, but a blank file in the name of
Latestfile.dat is created.
any help in greatly appreciated.
Thanks,
Yamuna
918-5127
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
---------------------------------
Do you Yahoo!?
Yahoo! Sports - Sign up for Fantasy Baseball.
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users