Search Results

Search: Posts Made By: mitr
7,963
Posted By mitr
Thank you ..that worked !!
Thank you ..that worked !!
7,963
Posted By mitr
Thank you for the quick response ..but alas I...
Thank you for the quick response ..but alas
I tried that as well
currenttimestamp=`db2 "select current timestamp from SYSIBM.SYSDUMMY1 with ur" |awk '{print $3}'`
echo currenttimestamp...
7,963
Posted By mitr
hi.. this works if i just type it at the...
hi..

this works if i just type it at the command..
but i need it as a variable ..
how do i do that ?

if I do
currenttimestamp=`db2 "select current timestamp from SYSIBM.SYSDUMMY1 with ur"...
7,963
Posted By mitr
How to retrieve the current timestamp?
I am doing this in my script ..
currenttimestamp=`db2 "select current timestamp from SYSIBM.SYSDUMMY1 with ur"`

echo s $currenttimestamp
but this is how its shows
s 1...
7,160
Posted By mitr
actually I initially tried with space ..but then...
actually I initially tried with space ..but then it would throw this message
and also it would not insert the row to the table..

SQL3148W A row from the input file was not inserted into the...
7,160
Posted By mitr
timestamp field was padded with blanks warning
There are two columns on the data base table, create and update timestamps of datatype timestamp.

I dont have these fields on the csv file. So I am doing the below.

awk -F , -v d="$(date "+...
4,814
Posted By mitr
I cannot manipulate the Excel file. It comes...
I cannot manipulate the Excel file.
It comes from a third party and we have to run the batch file to handle the data that they send before inserting into our DB.

---------- Post updated at 09:01...
4,814
Posted By mitr
duplicate row based on single column
I am a newbie to shell scripting ..

I have a .csv file. It has 1000 some rows and about 7 columns...

but before I insert this data to a table I have to parse it and clean it ..basing on the...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 12:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy