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 bkrike 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: logic4fun
  • Content: Threads
  • Order by date
  1. logic4fun

    read xml doc

    All, This is my first day in ASP and also WEB programming and i am looking into a requirement which is on my plate when someone is on vacation. There is a HTML page which returns data in XML format. Something like this...
  2. logic4fun

    Changing Array Contents

    Hi all, I am a newbie in perl and tried to search perl forums for my question but couldnt get the answer. Also i am not sure even if it is possible or not.. What i am trying to accomplish is.. I have an array @data = (a b c d) and i need to change it as @data = ('a',b,c,'d'). All i need...
  3. logic4fun

    read() problem

    Hi All, I am not sure whether its related to my read call or something else. But i am stuck after the read call in the program. I am trying to read data from a file (client/server) program. This program works fine when the file name is to a limited size (for eg...
  4. logic4fun

    Indicator variable arrays.

    All, I am trying to use indicator variable arrays in my fetch statement and i am getting error. This particular chunk of code used to work fine on redhatLinux for past 2 or 3 years. and now we wanted to move to enterprise linux and it is not accepting indicator variable arrays. But it is...
  5. logic4fun

    reading oldest file

    All, I have a C program with embedded SQL which reads the files and loads them into database. Today i am using a system call to ls -lrt and taking the output into an array to get my oldest file. I am trying to avoid using system call. Is there anyway to retrieve the oldest file from the...
  6. logic4fun

    Rookie in Perl, Parsing question

    All, I am trying to do the following in a simple perl script. But as i am very basic to perl i am having tough time getting through. sample Input files ----------------- Hello i am fine JOE::1:122,2:2,3:18,4:37, i am doing great here JOE::2:11,3:3,4:3,5:28,6:2 JOE::1:1234,5:12 ---------- All...
  7. logic4fun

    Problems reading binary files

    All, I am trying to read binary files and i am experiencing premature end of file. I checked with feof() and it reaches end of file. But when i do a strings on the binary file i see more records after it said end of file. Can somebody provide me an insight on this. thanks in advance logic4fun
  8. logic4fun

    SQL Query Help

    All, I am trying to write a query on the following data.. Identifier VAlue 1002 1 1002 7 1002 10 1003 1 1003 5 1003 7 1003 10 1004 7 1004 10 from the above i would like to query all the identifier which ontail values 1 and 5 and 7. so the...
  9. logic4fun

    Avoiding Duplicate Copy

    I have a C program with embedded SQL in it. All it does is it kicks off from a shellScript with a particular sleep. I wanted to add a logic to the program where it doesnot allow a duplicate copy of my C program to run. to be specific on a box only one copy should run. and if someone tries to run...
  10. logic4fun

    Sql Join Help

    I am planning to join two tables and am in a process to figure out the fastest possible query. For eg: Table A: -------------------------------- Name Time purchased sold larry 10:00 4 3 jamie 11:00 2 0 chris 11:00 1 1...
  11. logic4fun

    connecting to two databases

    All, I need to connect to two different db2 databases in a single pro*C application For eg: int main { exec sql connect to X; select a into valA from X.tableA; { do some caluculations with valA } exec sql connect to Y; insert into Y.tableB values (valA)...
  12. logic4fun

    call to Connect

    Hi all, I am trying to call Connect system function in my client application and when the box is offnet or powered down it is taking awful lot of time to return from that call. I want to wrap around this function a timer so that..it waits for that time and returns out of that. but as i am a...
  13. logic4fun

    Hi all, I am trying to use the Cti

    Hi all, I am trying to use the Ctime function and it works fine when i use that in two different lines but it wont when i use two Ctime calls in one line..confusing..donno why..here is a snippet which shows that.. #include <time.h> #include <stdio.h> #include <string.h> #include <sys/timeb.h>...
  14. logic4fun

    dead lock errors

    Hi all, I have an embedded sql program (C + SQL) which is throwing me a dead lock errors(sqlcod -911) sometimes when it updates a column in a table. Normally to my knowledge when it throws deadLock error for inserts or delets we can avoid it by frequent commits. but dont understand how to deal...
  15. logic4fun

    taking Strings into Array.

    Hi all, I am confused..whether i am trying which we cant do or I am doing wrong..I would say i am doing some mistake in the following chunk. all i wanted to do is take a bunch of strings into a string pointer array so that i can reuse them. ********************************** char i[35]...
  16. logic4fun

    parsing Record

    Hi all, I have huge data files with different line legths and trying to load into tables. I would like to write a generic function which i can read through file. and as i said..it deals with huge quatity of data. here is what i wrote but am running into problems..when i get Two commas at a...
  17. logic4fun

    Char Vs Int Issue (Like predicate confusion)

    hi all, i have the following two tables Tab A with a single column X CHAR(4) ----- 100 100a 200 200b and TAB B with two columns X INT, Y CHAR(10) ----------------------------------- 100 junk1 200 junk2 i need to join the above two tables to get the following output X.TAB A ---...
  18. logic4fun

    confusing DAY LIGHT SAVINGS

    Hi all , i have a question with the daylight saving for 2002-10-27-01.15.15 timestamp I will have two unix times becoz of daylight savings. i.e. 1035699315 1035695715 and both the above unix times when u do VTIME they give same time stamp I would like to set the timezone in my function or...
  19. logic4fun

    getpriority() usage

    Hi all, my brain hurts once again..I might be boring the forum by asking too many questions on priority..Actually i am using a getpriority(which,who) function to get the scheduling priority in a C application in LINUX. i am using the following way getpriority(getpid(),0); this function...
  20. logic4fun

    undefined reference to 'getpri'

    Hi all, I am trying to port one of my C: application from AIX to LINUX and this is a new linux box..and when i try to compile on LINUX for the following chunk of code it throws the afore said error..&quot;undefined reference to 'getpri'&quot; and the same code compiles very well in the AIX...

Part and Inventory Search

Back
Top