Simple scripting question
Gabriel wrote on Apr 13, 2009
Hi,
I've written a procedure script which uses the 'fields' task. I can't make it stop asking me to confirm the lines to be extracted. This is how the 'fields' parameters are set:
fields.mode = 'hl'
fields.files = 'file1'
fields.fields = "1-2"
fields.lines = "1-5"
fields ('file2')
Every time I'm required to confirm the "lines" parameter, even though it's already in the parameters.
It's a minor problem, but I'd really like to fix it, so the script won't stop and wait for confirmation.
Thanks!
Gabriel
I've written a procedure script which uses the 'fields' task. I can't make it stop asking me to confirm the lines to be extracted. This is how the 'fields' parameters are set:
fields.mode = 'hl'
fields.files = 'file1'
fields.fields = "1-2"
fields.lines = "1-5"
fields ('file2')
Every time I'm required to confirm the "lines" parameter, even though it's already in the parameters.
It's a minor problem, but I'd really like to fix it, so the script won't stop and wait for confirmation.
Thanks!
Gabriel
Mike Fitzpatrick wrote on Apr 13, 2009
I think you mean it keeps prompting you for the 'fields' param?? If so, you can make this one parameter hidden by adding the line
Or else just supply the param when you make the call, e.g.
-Mike
fields.fields.p_mode="h"Or else just supply the param when you make the call, e.g.
fields ("file2", "1-2") -Mike
Gabriel wrote on Apr 13, 2009
Yes, I meant the "fields" param.
Thanks Mike!
Thanks Mike!
Last post on Apr 13, 2009