Search found 12 matches

by SujeethP
Tue Jul 27, 2010 4:54 am
Forum: General
Topic: Date Formatting in Job Sequencer
Replies: 4
Views: 5412

Thanks Sainath..

I got what i wanted.

Ereplace(Oconv(Date(),"DYMD[4,2,2]")," ", "-"):" ": Oconv(Time(), "MTS")

by SujeethP
Tue Aug 04, 2009 5:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue in counting the rows
Replies: 14
Views: 5968

In that case, change the execute command where you read as cat <fileName> | tr -d '\n' ... Thanks Sainath & ArndW for your help. Achieved the required output. This is what exactly i wanted, bash-3.00$ cat /detld2/etl/CTI_London/SWP/delivery/e_OTCPrice_20090730_-1_RecordCount 0 bash-3.00$ cat /d...
by SujeethP
Tue Aug 04, 2009 5:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue in counting the rows
Replies: 14
Views: 5968

Yes, I am aware that your UNIX and my UNIX differ, that is why I stated "on AIX". What UNIX are you on? The cut command is doing exactly what it should. When you output to a file UNIX added a <l ... My Unix is Solaris 10/SunOS 5.10. By the way, i couldn't get your completed message :( Is ...
by SujeethP
Tue Aug 04, 2009 5:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue in counting the rows
Replies: 14
Views: 5968

Not sure what you want to achieve. Can you please rephrase your requirement. wc -m gives you number of characters and not words. So it gives you 2 - 1 for zero and 1 for newline. If ... That's true. I need to read only the "0/RowCount" from the file without the new line. Because,in the Ex...
by SujeethP
Tue Aug 04, 2009 5:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue in counting the rows
Replies: 14
Views: 5968

On AIX the man pages read: head Command Purpose Displays the first few lines of a file. Syntax head [ -Count | -c Number | -n Number ] [ File ... ] If ... Hi ArndW, My man page contains, bash-3.00$ man head Reformatting page. Please Wait... done User Commands head(1) NAME head - display first few l...
by SujeethP
Tue Aug 04, 2009 5:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue in counting the rows
Replies: 14
Views: 5968

You can do head -1 filename | cut -c1 ... Hi Sainath, The above code is also not working, bash-3.00$ cat /detld2/etl/CTI_London/SWP/delivery/e_OTCPrice_20090730_-1_RecordCount 0 bash-3.00$ wc -m /detld2/etl/CTI_London/SWP/delivery/e_OTCPrice_20090730_-1_RecordCount 2 /detld2/etl/CTI_London/SWP/deli...
by SujeethP
Tue Aug 04, 2009 5:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue in counting the rows
Replies: 14
Views: 5968

What about "head -c 1 MyTextFile" to get just the first character of the file? You can use sed '$d' < MyFile > TempFile ; mv TempFile MyFile to remove the last line from a file. ... Hi ArndW, Even using sed also i could get the desired output. please correct if i typed something wrong, ba...
by SujeethP
Tue Aug 04, 2009 5:14 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue in counting the rows
Replies: 14
Views: 5968

What about "head -c 1 MyTextFile" to get just the first character of the file? You can use sed '$d' < MyFile > TempFile ; mv TempFile MyFile to remove the last line from a file. ... Hi ArndW, I couldn't use "head" to get the first character of the file. bash-3.00$ head -c 1 /det...
by SujeethP
Fri Jul 31, 2009 4:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue in counting the rows
Replies: 14
Views: 5968

Issue in counting the rows

Hi I am facing the problem while counting the rows & saving in a file. I am using Tail stage in parallel job to count the rows, i am exactly counting the rows & saving it in a file. (Format of the file :- Final Delimter string = end/none/null(tried) Delimiter = | Quote = none) My problem is ...
by SujeethP
Wed Jun 10, 2009 12:07 am
Forum: General
Topic: How to use dscmdexport/dsexport to export a single job?
Replies: 3
Views: 2395

I dont have the access for UAT/PROD servers. I have access for only DEV servers.

Is it possible to export the UAT/PROD jobs?
by SujeethP
Tue Jun 09, 2009 11:54 pm
Forum: General
Topic: How to use dscmdexport/dsexport to export a single job?
Replies: 3
Views: 2395

How to use dscmdexport/dsexport to export a single job?

Hi, I am new to datastage. Please help me to export a single job by command line argument. Please tell me the location/Procedure to use dsexport command I tried it and gets the below error. Please help me in this issue. bash-3.00$ pwd /detld2/etl/ascential/Ascential/DataStage bash-3.00$ dsexport /H=...
by SujeethP
Mon Apr 20, 2009 1:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to use Substring_by_delimiter in DataStage?
Replies: 4
Views: 6224

How to use Substring_by_delimiter in DataStage?

Hi friends,

I facing a problem in splitting the string by delimiter.
I need to take substring that should be in between 2 commas(",")

Please help me out