Search Results

Search: Posts Made By: Leedor
3,079
Posted By Leedor
Thankyou!
Thanks so much RudiC, will try to test this shortly but after a bit of googling I think I have understood what you are trying to do, please let me know if I have misunderstood any commands. I...
3,079
Posted By Leedor
Thanks for the quick reply, RudiC, sorry thought...
Thanks for the quick reply, RudiC, sorry thought Pseudocode would help be unambiguous but here it is in English:

1. Checks existence of a header file matching mask F57DWHDR.yyyymmddhhmmss.CSV
2....
3,079
Posted By Leedor
Help turning pseudocode into ksh script
Hi gurus,

My boss has asked me to create a unix script to check header files vs data files and to send an email in case of any failure.

I have very little unix scripting experience and it was...
3,321
Posted By Leedor
Thanks so much for this Alister, the first option...
Thanks so much for this Alister, the first option you gave works fine for my example and this issue is such a rare occurence that I'm sure we'd be fine with that since I doubt we'd ever get it in...
3,321
Posted By Leedor
Removing ^M and the newline that follows it.
Hi Gurus,

Apologies as I feel like this must be answered already on here somewhere but I just can't find it. I find many people looking to remove all \n and \r (CR and LF) or one or the other but...
Forum: Programming 12-08-2010
2,672
Posted By Leedor
Hi Corona, Thanks again for getting back to...
Hi Corona,

Thanks again for getting back to me. My final code is as achenle suggested: as per my original attachment with that single change. This seems to work fine and I have checked the...
Forum: Programming 12-07-2010
2,672
Posted By Leedor
Corona, thanks for your reply and help,...
Corona, thanks for your reply and help, unfortunately my almost non-existent C++ knowledge means I'm sure I've misunderstood you and am not doing it right.

Achenle: I tried your solution and it...
Forum: Programming 12-06-2010
2,672
Posted By Leedor
Ok, I'll take your word for that, it sounds bad. ...
Ok, I'll take your word for that, it sounds bad.

The reason I need to return a char, not void, is because it's run from within Datastage, which expects functions to have a return value. So for...
Forum: Programming 12-06-2010
2,672
Posted By Leedor
Hi Corona, Thanks again for both the note...
Hi Corona,

Thanks again for both the note on undeclared externals (still not sure why I get no warning or error) and the solution.

Unfortunately I need my CrncyFmt function to return a Char*,...
Forum: Programming 12-06-2010
2,672
Posted By Leedor
Hi Corona, Thanks for the quick response. ...
Hi Corona,

Thanks for the quick response. It does actually compile on both Linux and AIX ... with or without the #include <stdlib.h>

I added the stdlib.h line but it still only outputsCharOut...
Forum: Programming 12-06-2010
2,672
Posted By Leedor
C++: No output for Char* when on AIX. Worked on Linux
Hi All,

I have a script (attached) that was working fine on Linux. I compiled it there using g++ CrncyFmt.cpp -o CrncyFmt.o

When I ran it there using eg. CrncyFmt.o 2343.565 2 I get as...
Forum: Programming 10-15-2010
8,344
Posted By Leedor
Partial Solution
Hi,

We decided to go for a different option in the end (being untrained and useless in C++).

Thanks for the advice Corona, here's the partial solution I had when we called it off in case it...
Forum: Programming 10-06-2010
8,344
Posted By Leedor
C++ Formatting Numbers to Strings
Hi All,

Sorry to say I have 0 experience writing C++ but have been asked to write a piece of code that will take a double input and an integer for number of decimal places as well as integer for...
5,700
Posted By Leedor
Thankyou!
Many thanks rdcwayx.

Have tested your code quite thoroughly this morning and it seems to work perfectly for our needs.

Much appreciated!
5,700
Posted By Leedor
ksh script to create a generic csv file from different source formats
Hi all,

I have a requirement to create a "superset" file out of a number of different sources with some different and some same columns.

We intend to have a manually updateable...
4,353
Posted By Leedor
Thankyou!
Thanks to all who replied, I tested all options with the test data and Franklin52's came out on top.

Cheers!
4,353
Posted By Leedor
Thanks guys for the very quick responses,...
Thanks guys for the very quick responses, unfortunately I can't get either solution to work.

116: I get the error below

split.sh[5]: /home/dlee: 0403-012 A test command parameter is not...
4,353
Posted By Leedor
File splitting, naming file according to internal field
Hi All,

I have a rather stange set of requirements that I'm hoping someone here could help me with. We receive a file that is actually a concatenation of 4 files (don't believe this would...
Showing results 1 to 18 of 18

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