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...
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...
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...
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...
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...
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...
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...
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????
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???
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...
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...
Used this script to remove the asterick from the 2nd field where sometimes contains an asterick.
> awk 'BEGIN { FS=OFS="*" }
> {
> if ($1=="CLM") {
> while ( $3 !~ /^[0-9]*[.][0-9][0-9]$/ ) {
> $2=$2 $3;
> for (x=3; x<split($0,a); x++)
>...
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 "Printing $file"
lp - $LP file
done
The line prints:
printing /test/AUDITIN/20030929_I01.UUU.RPT
but then the system...
This is the code being executed:
awk 'BEGIN { FS=OFS="*" }
{
if ($1=="CLM") {
while ( $3 !~ "^[0-9]*\.[0-9][0-9]$" ) {
$2=$2 $3;
for (x=3; x<split($0,a); x++)
$x=$(x+1);
}
print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12;
}...
Need to create a script that will take the current user id and search an audit trail directory for the current date and user id (both of these are part of the file name) and then print the file.
Audit Trail Directory has file names like:
20030924_002.UUU.RPT
20030925_I01.YYY.RPT
1) How can I...
Tried with the both example and worked except for a few items:
diff CLM_TEST1 CLM_FIX1
These did not remove the unwanted * but removed the other fields at the end of the record....
58c58
< CLM*852005*916612*220.00*WC**11^^1******EM^^^JJ
---
> CLM*852005*916612*220.00*WC**11^^1*****
288c288
<...
All your suggestions were great and I thank you but I tried the awk script and it doesn't appear to be working...
This is the error I receive:
awk: 0602-537 A single giant record was built
starting at `REF*87004010X0980040...'
The input line number is 5. The file is file1.
The...
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.