Search found 33 matches

by Bostonian
Wed Oct 15, 2014 5:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error message: ORA-00911: invalid character.
Replies: 1
Views: 3085

Instead of adding \ to the line break in the query, could you try to adding APT_OSL_PARAM_ESC_SQUOTE as a User Defined variable for your project or in the specific job parameter while setting its value to "\" without quotes ?
by Bostonian
Fri Oct 10, 2014 1:26 pm
Forum: General
Topic: New Line character on Windows
Replies: 17
Views: 8466

Here is my design. Execute_command --> UserVariable --> StartLoop --> Job_Activity. EC runs the ls abc*.txt UV runs Field(Convert(@FM, ",", Execute_Command_0.$CommandOutput), ",", 1, Count( Execute_Command_0.$CommandOutput,@FM)) SL uses the output of UV as counter JA has 2 input ...
by Bostonian
Fri Oct 10, 2014 10:17 am
Forum: General
Topic: New Line character on Windows
Replies: 17
Views: 8466

Excellent. That works. Thank you, chulett.
by Bostonian
Fri Oct 10, 2014 8:30 am
Forum: General
Topic: New Line character on Windows
Replies: 17
Views: 8466

But how do I populate UserVars.var1 and UserVars.var2 from the file name coming out of the start_loop_activity.counter?
by Bostonian
Thu Oct 09, 2014 6:30 pm
Forum: General
Topic: New Line character on Windows
Replies: 17
Views: 8466

Darn... As always, you are right Sir Wurlod. It works fine now. thank you very much. By any chance do have any suggestion on how I can do the following in a sequencer? - Run the following ls command in the execute command stage. {DONE} ls abc_123_US_*.txt. - If it fetches any file then convert the e...
by Bostonian
Thu Oct 09, 2014 5:00 pm
Forum: General
Topic: New Line character on Windows
Replies: 17
Views: 8466

In the user variable stage,

Field(Convert(@FM, ",", ExecCommand.$Output), 1, Count(ExecCommand.$Output,@FM))

In the execute Command stage,

grep -L root #Src_file#*.txt

I also tried ls #Src_file#*.txt
by Bostonian
Thu Oct 09, 2014 1:26 pm
Forum: General
Topic: New Line character on Windows
Replies: 17
Views: 8466

Ray and Chulett - Thank you. But when I use Ray's command the output is basically the number of files that the ls command is fetching. It is not giving the actual file names. E.g. if my ls command lists abc.txt def.txt Field(Convert(@FM, ",", ExecCommand.$Output), 1, Count(ExecCommand.$Out...
by Bostonian
Wed Oct 08, 2014 6:15 pm
Forum: General
Topic: New Line character on Windows
Replies: 17
Views: 8466

I tried ls -m but it doesn't work on Windows Power Shell or command prompt. I simply want to loop the sequencer as many times as I have the number of files in the directory. The grep command lists the file names correctly but I am not able to give a new line character as the start loop delimiter. e....
by Bostonian
Wed Oct 08, 2014 4:04 pm
Forum: General
Topic: New Line character on Windows
Replies: 17
Views: 8466

New Line character on Windows

Hi, I am trying to build a sequencer to get a list of files from windows server and loop them in 1 by 1. Execute Command --> Start Loop ---> Job Activity --> End Loop In the execute command, I am executing the following command to give me the list of file names in the directory. grep -L root #Src_fi...
by Bostonian
Thu Sep 11, 2014 8:03 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with reading XML file
Replies: 16
Views: 8445

Actually, when I tried to give "ls C:\TEST.xml" without quotes, I get the following error. The source method is Program Files External_Source_31: Could not open source list file "ls C: est\dim_Item-TEST.xml" should I give it in quotes? {EDIT}: The path I give is "ls C:\XML\T...
by Bostonian
Thu Sep 11, 2014 7:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with reading XML file
Replies: 16
Views: 8445

Hello Eostic,
I did read your post with the title "Reading XML Content as a Source".

Are you suggesting to use unix ls command on Windows system which is my OS? If so, I tried that too.
by Bostonian
Thu Sep 11, 2014 6:20 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with reading XML file
Replies: 16
Views: 8445

Thank you, Guys. But I am definitely doing something wrong as I still can't make it work. Here is what I did. - Imported the XML file into XML Table definition. In the XML Meta Data Importer window, I expanded all the sections. Under "Records", there was "R" and under that there ...
by Bostonian
Thu Sep 11, 2014 12:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with reading XML file
Replies: 16
Views: 8445

Thank you, Chulett. I did download the Best practices doc from Ray's website and I am reading it now. Here is an update on my issue (and it still exists :( ) Got the XSD file layout and imported to the XML definitions as Ray suggested. Then used External Source--> XML Input --> Peek design to proces...
by Bostonian
Wed Sep 10, 2014 5:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with reading XML file
Replies: 16
Views: 8445

Excellent. Thank you Ray. I will give it a shot tomorrow and update this thread with the results.
by Bostonian
Wed Sep 10, 2014 4:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help with reading XML file
Replies: 16
Views: 8445

Chulett -Thank you very much for the information. No, I have never done anything with XML files before. The design that you proposed is exactly what I have in my job design. But I was not aware of the XSD file. I will get that as the first thing from the vendor sending this file and see how it goes....