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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by confuseddddd

  1. confuseddddd

    dateinterval

    Trying to find the current week number of the year and I am trying to use dateinterval.weekofyear; however system should be returning 14 and is returning 5. Any idea as to why??? Dim nWeek As Integer = DateInterval.WeekOfYear also tried Dim sWeek As String = DateInterval.WeekOfYear Want to be...
  2. confuseddddd

    Code to ftp files and then send email with files attached

    I am a "newbie" to .net and need some guidance. I want to be able to retrieve files from a windows application server and then ftp these files to another windows directory location and then attach these files in an email to send. First, can this be done and if it can be done, can someone point...
  3. confuseddddd

    Merge 2 files into 1 file

    Does anyone know how to accomplish this??? I am newbie to .net and would like some assistance, either by giving me some websites where I can browse around to find some material on accomplishing this or giving me some book names to read on going about merging files into one file. It will be the...
  4. confuseddddd

    merge files

    Have files created in a VB environment and an unix environment and want to merge the files into one file using .net. I am brand new to .net and would like any assistance on getting started or if someone can let me know what book to go buy, so I can attempt to do this. Any input would be most...
  5. confuseddddd

    Access field with no decimal point

    Have created a table that has data coming from a text file with dollar sign, comma and decimal points. I want to be able to just have the field be zero filled and no decimal point but keep the decimal amounts...example have $6,512.31 and want it to be 00000651231... how can I accomplish that...
  6. confuseddddd

    nawk script appears to be truncating data

    Have the following nawk script and appears the file is being truncated... The script reads the current date, reads the input file for every occurance of BBIL and then writes out all records between each BBIL to a specific person's file; however, appears some of the records are being truncated...
  7. confuseddddd

    parameter list is too long error

    used the double quote suggestion for the PRE variable and still receiving the same message. Any other ideas???
  8. confuseddddd

    parameter list is too long error

    Here is the code to about line 20 and no, GNU AWK , is not an option.... ## ## READS THE INTERFACE FILE RECEIVED CREATES ## SEPARATE USER-ID SPECIFIC FILES FOR INTERFACE PROCESSING ## ##### WHEN ADD NEW USER: ###### ## 1) ADD USER COUNT VARIABLE ## 2) ADD USER ID CHECK TO NOT...
  9. confuseddddd

    Move yesterday's file the next day

    tried your suggestions and still am receiving the ERROR 0. The script is run daily and needs to take the day before's file and place in an archive directory. Don't want to hard code the date every day but wanted to just be able to copy the file (yesterday's)... Any other suggestions????
  10. confuseddddd

    parameter list is too long error

    Trying to run a nwk script and am receiving /scripts/EOS_INT.nwk[17]: /usr/bin/nawk: 0403-027 The parameter list is too long. Any ideas on how to allow the nawk script to be greater than 900 lines???
  11. confuseddddd

    Move yesterday's file the next day

    Need some help on taking a file created yesterday but is processed today and moving it to an archive directory. correctly the logic is: cp 20*.I* /ARCHIVE/inbound/cp 20*.I* 2>> $EDILOG but we receive: cp: 20040218.I01: Error 0 Any ideas on how to copy the file regardless of the date...
  12. confuseddddd

    awk script to remove invalid chars in a variable length record

    Okay, that worked great except it didn't catch all of the situations... Have the following: CLM*269605*73612*542.75*WC**11^^1******EM^^^NM should be CLM*26960573612*542.75*WC**11^^1******EM^^^NM CLM*30750****41.91*WC**11^^1******EM^^^TX should be CLM*30750*41.91*WC**11^^1******EM^^^TX...
  13. confuseddddd

    awk script to remove invalid chars in a variable length record

    Used this script to remove the asterick from the 2nd field where sometimes contains an asterick. > awk 'BEGIN { FS=OFS=&quot;*&quot; } > { > if ($1==&quot;CLM&quot;) { > while ( $3 !~ /^[0-9]*[.][0-9][0-9]$/ ) { > $2=$2 $3; > for (x=3; x<split($0,a); x++) >...
  14. confuseddddd

    Remove unwanted character from within field

    thanks that worked.....
  15. confuseddddd

    Ability to print a report on request

    Can anyone see what is wrong with this??? PATH_TO_FILE=/test/AUDITIN;export PATH_TO_FILE for file in $PATH_TO_FILE/`date +%Y%m%d_I01.${uid}.RPT` do echo &quot;Printing $file&quot; lp - $LP file done The line prints: printing /test/AUDITIN/20030929_I01.UUU.RPT but then the system...

Part and Inventory Search

Back
Top