I am having a requirement where i am getting a source flat file, in which there is a column which specifies the Material Type code.
Now i have to generate a new target file for each type of material type code.
So what i thought was that, if i can some how change the target file name which is given as a job parameter, at run time in a transformer then whenever the parameter is set the new file name will be there and hence a new target file will be generated.
But the problem is i am not able to set the parameter. Its giving errcode as -1. i am using it as.
i wrote a routine SETPARAM as
Code: Select all
$INCLUDE DSINCLUDE JOBCONTROL.H
ErrCode = DSSetParam (Jobhandle,ParamName,ParamValue);
Ans = ErrCode
then i called this routine in transformer as : -
SETPARAM(DSJ.ME,"TargetFileName","Value").
Here TargetFileName is the parameter name for my target file.
So i am getting the errcode as -1. Which i assume as of for BADHANDLE. Can anyone please suggest how can i go about it[/code]