Hello,
I would like to remove spaces from a variable (ex: "This is the value" being convert into "Thisisthevalue" without having to use PERFORM checking all characters of the variable. I suspect it could be possible using the command INSPECT, but I don't know how. I tried
INSPECT VARIABLE...
Hello,
I want to change the name of all my universes, by SQL query instead of manual change in BO.
I then made the following queries:
-- TO CHANGE universe name --> Change UNI_FILENAME of UNV_UNIVERSE
UPDATE UNV_UNIVERSE SET UNI_FILENAME='NEWNAME' WHERE UNI_FILENAME='OLDNAME'...
HEllo,
Is it possible to use "replacing" option in a PERFORM
such as:
PERFORM TODO THRU TODO-FN
REPLACING XXXX BY ABCD
PERFORM TODO THRU TODO-FN
REPLACING XXXX BY EFGH
?? This would be useful when I have to make some treatments on different tables with the same layout.
Thank you...
Hello,
I have a file with lines such as:
[0,,125554656,+ 14.57,000000,0,0]
[1,2,125433545,- 1234568.24,000,0,0]
...
And I want to write a script removing the spaces between the sign (+ or -) and the amount.
Which command should I use? Perl?
Thank you in advance
Hello,
I want to write a script with several command, example:
#1
Command 1
#2
Command 2
#3
Command 3
...
I will test the return code of these command and exit the script in case of error. After having investigate the error causes, I want to be able to re-execute the script from the failed...
Hello,
I'd like to write a script to read a flat file and to split it into 2 different ones. Here is the structure of the original file:
0xxxxxxxxxxx
1xxxxxxxxxxx
1xxxxxxxxxxx
...
9xxxxxxxxxxx
0xxxxxxxxxxx
1xxxxxxxxxxx
...
9xxxxxxxxxxx
Where x can be a number or a letter and where the number...
Hi again,
Here is my question:
In a script, I test the "return code" of a request as follow:
ls -1rt $directory | read file
if [[ $? -eq 0 ]] ; then
echo DIRECTORY NOT EMPTY.
GO to the §9
fi
As you certainly guessed, I'd like to know how to write the "GO to the...
Hello,
I am a beginner in UNIX programmation and I want to do the following:
- I connect from the UNIX server to an FTP server
- I take all the .dat files from a particular directory
- and here is my problem: I want to rename the files I took into .dat.done for example. But it seems that I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.