Hi,
I was trying to read an xml file using sequential file stage and External source stage in a parallel job. I get some errors. I was able to read teh file succesfully in server jobs using folder stage. Can anyone please help me?
I get the following error when I use this string "ls #C:\Datafiles#*.xml | sort" in specific programs property in External source stage. C:\Datafiles is my xml subdirectory path.
main_program: Data set, file set, or file "External_Source_0:DSLink3.v": Non-pipe (or non-virtual data set) with .v in its name
when I use this string "cat /#C:\Datafiles#/cd_catalog.xml", I get the following error.
External_Source_0: When processing argument -sourcelistWhen processing file: cat /#C:\Datafiles#/*.xml is not a valid path name: Invalid hostname: cat /#C.
Can anyone give me the exact syntax that I should be using. Thanks in advance.
Thanks,
Reddy.
XML Imput Read Problem
Moderators: chulett, rschirm, roy
It will be helpful to understand what your feedback might be for Craig's question about the directory name part of your file name.
Are you trying to have a job parameter for the folder name?
Check out viewtopic.php?t=115830&postdays=0&posto ... ce&start=0 for a detailed discussion on this topic.
Good luck,
Are you trying to have a job parameter for the folder name?
Check out viewtopic.php?t=115830&postdays=0&posto ... ce&start=0 for a detailed discussion on this topic.
Good luck,
-V
Hi,
I have used the External Source Stage. I can see that the records passed through to XML Input stage but, all the records are rejected and none of them are processed further. I used a peek stage and got the following error message.
"Peek_5,0: Reject:XML input document parsing failed. Reason: Xalan fatal error (publicId: , systemId: , line: 1, column: 1): Invalid document structure"
I have used Folder Stage and it worked fine without any errors. Can anyone help me with this. Thank you.
Reddy.
I have used the External Source Stage. I can see that the records passed through to XML Input stage but, all the records are rejected and none of them are processed further. I used a peek stage and got the following error message.
"Peek_5,0: Reject:XML input document parsing failed. Reason: Xalan fatal error (publicId: , systemId: , line: 1, column: 1): Invalid document structure"
I have used Folder Stage and it worked fine without any errors. Can anyone help me with this. Thank you.
Reddy.
if it is in Server jobs or parallel
For Server jobs
In file Folder U can mention the values
sort order------------NONE
wild carld-------------filename_*.xml (ex: reddy_*.xml)
preserve CRLF-------Yes
Fully quelified--------N
In XML U can enable the value
Where you need repetition value on that column u can enable yes remaining no on columns
If you r parallel
in external source
where u r enable the path name, where u can give before the path name this unix value and between unix value and file path we need single space 'ls file path'(ex:ls /inbox/reddy.xml)
in xml stage
u can enable URL/path in input and Where you need repetition value on that column u can enable yes remaining no on columns
This is deesh
thanks
In file Folder U can mention the values
sort order------------NONE
wild carld-------------filename_*.xml (ex: reddy_*.xml)
preserve CRLF-------Yes
Fully quelified--------N
In XML U can enable the value
Where you need repetition value on that column u can enable yes remaining no on columns
If you r parallel
in external source
where u r enable the path name, where u can give before the path name this unix value and between unix value and file path we need single space 'ls file path'(ex:ls /inbox/reddy.xml)
in xml stage
u can enable URL/path in input and Where you need repetition value on that column u can enable yes remaining no on columns
This is deesh
thanks
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Whether or not U can do this these things is a matter of little importance. U is one of the infrequent posters at this site.
The second person personal pronoun in English is spelled "you", not "u".
The plural present tense form of the verb "to be" is spelled "are", not "r".
DSXchange is not a mobile telecommunications device; please do not use SMS-style abbreviations but, rather, adhere to more professional standards of English usage, as if you were documenting your work.
This makes life easier for those for whom English is not their first language.
The second person personal pronoun in English is spelled "you", not "u".
The plural present tense form of the verb "to be" is spelled "are", not "r".
DSXchange is not a mobile telecommunications device; please do not use SMS-style abbreviations but, rather, adhere to more professional standards of English usage, as if you were documenting your work.
This makes life easier for those for whom English is not their first language.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.