Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Yanndewael
  • Content: Threads
  • Order by date
  1. Yanndewael

    Remove SPACES using INSPECT ?

    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...
  2. Yanndewael

    Changing universes name

    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'...
  3. Yanndewael

    PERFORM REPLACING

    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...
  4. Yanndewael

    remove spaces in a file

    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
  5. Yanndewael

    Re-execution of a script, but not from the beginning

    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...
  6. Yanndewael

    Scritp to split a flat file into 2 different ones

    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...
  7. Yanndewael

    Skip some paragraphs in a script

    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...
  8. Yanndewael

    FTP: rename more than one file at once!!

    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...

Part and Inventory Search

Back
Top