Code: Select all
osh -echo "
fc_ModifyLocation
< [ds] input.ds
>| [ds] output.ds
"
I am stuck with opd. We have loads of existing opd. I wanted to import an exisiting one. e.g.
Code: Select all
$operator fc_ModifyLocation
$class fc_ModifyLocation
$input record(
loc: string[10];
inrec: *;
)
$output record(
location: string[10];
outrec: *;
)
$pre
$action
out.location = in.loc
$post
$end
1. I created simple buildop stage in datastage
2. I had to refer a table
3. successfully build and tested by using in a simple job (input dataset->buildop->output dataset)
4. export the whole build stage (buildop with table defination) into local directory as xml
5. learnt from the xml, and then replicated similar xml for said opd (fc_ModifyLocation).
6. then tried to import this xml, probably successfully imported but the problem with inrec: * and outrec: *.
7. did some googling, few said to use outrec[]: string; which is not helping.
Could you please help whether :
1. I am right direction
2. I am doing anything wrong
3. Is there better way to import opd (may be accessing metadata, and inserting information or anything else)
Thanks for reading so far and giving me valuable time. Please help.
Soumen