Hi,
I need to parameterize the file path and pass it as an input to the routine. I tried using the rotuine stage. But it doesnt works.
check=''
Ans='error'
OpenSeq path_seq To tempvar Then
End
ReadSeq ChkLine From tempvar
Then
check = ChkLine
end
close tempvar
Ans=check
where path_seq is the path of my file....how do i pass it when the routine is invoked in a sequencer job?
passing file path as a parameter to server routine
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
When i test the routine passing the path as a value for the argument the routine works fine. but in my sequence i assign this path to a aparameter in job properties and call this parameter in the routine activity stage in the sequence job. i need to pass this value as a parameter to next job. when run the sequencer the output of the routine activity stage is jus ''chulett wrote:And their names will default to Arg1, Arg2 etc but you can change that and name them appropriately if you so desire. ...
please help me figuring out what went wrong
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Put a DSLogInfo() call into your routine to report what pathname it received. Put DSLogInfo() calls into all four clauses of the OpenSeq statement to report which is taken. Put a DSLogInfo() call into the Then and Else clauses of the ReadSeq statement to report what happened and what was read.
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.