I am trying to setup SASUnit, but i am coming across an error just at
the start, I included the console output below. I am running on a RHEL 6
with SAS9.2 installed. So I selected the script
./sasunit.9.2.linux.en.sh to start and changed the SAS installation path
there to match my config.
Once It is up and running, the idea is to include it into a CI pipeline
with GitLab and/or Jenkins.
Regards
Harald
[bin]$ pwd
/usr/bin/sasunit/example/bin
[bin]$ ./sasunit.9.2.linux.en.sh
SASUnit root path = /usr/bin/sasunit
SASUnit config = ./bin/sasunit.9.2.linux.en.cfg
Overwrite = 0
Testcoverage = 0
Starting SASUnit ...
/saswork/SAS_work13A900002B93_sasserver/_runprogramspawned.cmd: line 1:
syntax error near unexpected token `('
what version of SASUnit do you use?
It seems not to be the current one. Please tell me your version so I can look up if there was a problem under linux.
Regrads
Klaus Landwich
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks for the response. I downloaded it the day before yesterday via the download button (https://sourceforge.net/projects/sasunit/files/latest/download) of sourceforge, so I assumed it to be the latest one. The zip file was named sasunit.v2.0.zip.
Any specific way I can verify the version?
Regards
Harald
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
not necessary. 2.0 is the latest version. What I saw in the concole misled me.
In the SASUnit root folder there is a readme.txt. It contains the current version and should read "This is the readme file for version 2.0 of SASUnit"
There should be a log file named run_all.log in the folder /usr/bin/sasunit/example/doc/sasunit/en.
Can you please attach that or send me via SourceForge e-mail if you don't want to post it in public.
Within this log file I can see more details about the run.
Did you try to start " ./sasunit.9.2.linux.en.overwrite.sh"? If not could you please do that first.
With the "overwrite" script the SASUnit control tables will be recreated. The script without "overwrite" starts only changed scenarios. It should make no difference and run scucessfully in both cases. But just to double check it.
Regards
Klaus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to run both scripts just now, with the same result. The log is attached, as far as I can see there is no confidential data in (I overwrote the site license information). Looks like the log only contains the second run (of sasunit.9.2.linux.en.overwrite.sh).
Btw: the readme.txt file also states 'This is the readme file for version 2.0 of SASUnit'
sorry for the delayed response. I tried it and it had worked.
It still reports an error, but I think this is due to the fact I am running on a server without desktop.
Many thanks for the support!
Regards
Harald
SASUnit root path = /usr/bin/sasunit/
SASUnit config = ./bin/sasunit.9.2.linux.en.cfg
Overwrite = 0
Testcoverage = 0
Starting SASUnit ...
SAS ended with errors! Check run_all.log for details!
Would you like to see the results [y|n]? y
/usr/bin/xdg-open: line 402: htmlview: command not found
/usr/bin/xdg-open: line 402: firefox: command not found
/usr/bin/xdg-open: line 402: mozilla: command not found
/usr/bin/xdg-open: line 402: netscape: command not found
/usr/bin/xdg-open: line 402: links: command not found
/usr/bin/xdg-open: line 402: lynx: command not found
xdg-open: no method available for opening 'doc/sasunit/en/rep/index.html'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to setup SASUnit, but i am coming across an error just at
the start, I included the console output below. I am running on a RHEL 6
with SAS9.2 installed. So I selected the script
./sasunit.9.2.linux.en.sh to start and changed the SAS installation path
there to match my config.
Once It is up and running, the idea is to include it into a CI pipeline
with GitLab and/or Jenkins.
Regards
Harald
[bin]$ pwd
/usr/bin/sasunit/example/bin
[bin]$ ./sasunit.9.2.linux.en.sh
SASUnit root path = /usr/bin/sasunit
SASUnit config = ./bin/sasunit.9.2.linux.en.cfg
Overwrite = 0
Testcoverage = 0
Starting SASUnit ...
/saswork/SAS_work13A900002B93_sasserver/_runprogramspawned.cmd: line 1:
syntax error near unexpected token `('
/saswork/SAS_work13A900002B93_sasserver/_runprogramspawned.cmd: line 1:
`/DWH/PROD/SAS/sas92/SASFoundation/9.2/bin/sas_en -sysin
/saswork/SAS_work13A900002B93_sasserver/check_spawning.sas -initstmt ";
%_scenario(io_target=/usr/bin/sasunit/example/doc/sasunit/en)" -log
/usr/bin/sasunit/example/doc/sasunit/en/log/000.log -print
/usr/bin/sasunit/example/doc/sasunit/en/tst/000.lst -noovp
-nosyntaxcheck -mautosource -mcompilenote all -sasautos (SASAUTOS
"/usr/bin/sasunit/saspgm/sasunit") -sasuser
/saswork/SAS_work13A900002B93_sasserver/sasuser -termstmt
"%_termScenario()"'
[bin]$
Hi Harald,
what version of SASUnit do you use?
It seems not to be the current one. Please tell me your version so I can look up if there was a problem under linux.
Regrads
Klaus Landwich
Hi Klaus,
thanks for the response. I downloaded it the day before yesterday via the download button (https://sourceforge.net/projects/sasunit/files/latest/download) of sourceforge, so I assumed it to be the latest one. The zip file was named sasunit.v2.0.zip.
Any specific way I can verify the version?
Regards
Harald
Hi Harald,
not necessary. 2.0 is the latest version. What I saw in the concole misled me.
In the SASUnit root folder there is a readme.txt. It contains the current version and should read "This is the readme file for version 2.0 of SASUnit"
There should be a log file named run_all.log in the folder /usr/bin/sasunit/example/doc/sasunit/en.
Can you please attach that or send me via SourceForge e-mail if you don't want to post it in public.
Within this log file I can see more details about the run.
Did you try to start " ./sasunit.9.2.linux.en.overwrite.sh"? If not could you please do that first.
With the "overwrite" script the SASUnit control tables will be recreated. The script without "overwrite" starts only changed scenarios. It should make no difference and run scucessfully in both cases. But just to double check it.
Regards
Klaus
Hi Klaus,
I tried to run both scripts just now, with the same result. The log is attached, as far as I can see there is no confidential data in (I overwrote the site license information). Looks like the log only contains the second run (of sasunit.9.2.linux.en.overwrite.sh).
Btw: the readme.txt file also states 'This is the readme file for version 2.0 of SASUnit'
Regards
Harald
Hmmmm, I still have no idea.
Is there a log file "000" in the log folder?
If yes can you please post it?
Thanks.
Hi Harald,
Now I can reproduce that behaviour in our environment. I'm starting to investigate
Regards
Klaus
Hi Harald,
It was a problem with the Syntax under Linux and SAS 9.2. Sorry for that
Here is my solution:
in the macro _runprogramspwaned under saspgm/linux change to following lines:
to the following
This should solve the probblem.
Hi Kluas,
sorry for the delayed response. I tried it and it had worked.
It still reports an error, but I think this is due to the fact I am running on a server without desktop.
Many thanks for the support!
Regards
Harald