Hi All,
I am writing after job routine .
I need function which gets the line of the search string, I want to take first part of the line(here i can use Field). Delimiter in the line is /.
Is there any alternate to UNIX `grep` in Datastage Basic Or is there any other logic to do the same.
Also can i use DSExecute to interact with UNIX(AIX) shell.
Regards,
Madhu
Alternate to UNIX `grep` in Datastage Basic
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 3593
- Joined: Thu Jan 23, 2003 5:25 pm
- Location: Australia, Melbourne
- Contact:
If you are talking about using search and replace on the data in the file you are better off doing it in the job via a transformer. Otherwise the easiest way to do grep is to call the grep command via dsexecute. Have a look at the DataStage BASIC Guide or do a forum search for the dozens of dsexecute examples.
Certus Solutions
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn