Hello,
I have a curiosity:
I have a script ksh which launches a job control which launches a job sequencer.
Before launching the job sequencer I want to parse a file and verify its structure. If the structure is ok then I should launch the job sequencer else nothing should happen.
Parsing of the file can be done with script ksh or the job control.
Do you know which is the best method?
Thank you in advance for your return.
Madalina
Parsing a file in Unix or DataStage
Moderators: chulett, rschirm, roy
Parsing a file in Unix or DataStage
O:-)There can be only one>:)
Welcome. :D
There really is no 'best' method, do whatever works and is maintainable by the crew you have there. I would think something of this nature would be better handled in a script, depending on exactly how much of the 'structure' of the file you are attempting to verify. However, like most things DataStage, there are usually multiple ways to solve any given problem.
There really is no 'best' method, do whatever works and is maintainable by the crew you have there. I would think something of this nature would be better handled in a script, depending on exactly how much of the 'structure' of the file you are attempting to verify. However, like most things DataStage, there are usually multiple ways to solve any given problem.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Perl is also quite fast for this type of activity and a little less cryptic (in my humble opinion).
Bestest!
Bestest!
Bestest!
John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services
"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services
"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
Re: Parsing a file in Unix or DataStage
Perl is a good option according to me anything to do with file handling or file manipulation.
AngelMady wrote:Hello,
I have a curiosity:
I have a script ksh which launches a job control which launches a job sequencer.
Before launching the job sequencer I want to parse a file and verify its structure. If the structure is ok then I should launch the job sequencer else nothing should happen.
Parsing of the file can be done with script ksh or the job control.
Do you know which is the best method?
Thank you in advance for your return.
Madalina