Hi All,
Please find the error message I get when I use the numeric loop in the sequence.
Controller problem: Loop final value not numeric
I have the below stages
Command Execute -> Start Loop -> Job Activity -> End Loop
I execute the command wc -l <filename>|awk '{print $1}' in the command execute stage and want to read this count of lines in the Start loop thats when I get the error message.
I have tried
Trim(Convert(@FM," ",#Command_Execute.$CommandOutput#))
But this did not work and gives the below error.
Controller problem: Loop final value not numeric (Trim(Convert(@FM," ",3) - cannot execute
I have searched for the forum but that did not help me.
Please help.
Thanks
Loop final value not numeric
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 247
- Joined: Thu Apr 27, 2006 6:38 am
- Location: Hyderabad
Re: Loop final value not numeric
Hi,
Please trying after removing space after @FM as below
Trim(Convert(@FM,"",#Command_Execute.$CommandOutput#))
Please trying after removing space after @FM as below
Trim(Convert(@FM,"",#Command_Execute.$CommandOutput#))
devidotcom wrote:Hi All,
Trim(Convert(@FM," ",#Command_Execute.$CommandOutput#))
Regards,
Sunny Sharma.
Sunny Sharma.
-
- Participant
- Posts: 247
- Joined: Thu Apr 27, 2006 6:38 am
- Location: Hyderabad
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Why is the activity variable contained in sharp signs?
Build the expression with the expression editor. You should get something like
I believe that your reference to a non-existence stage variable is returning -3 (DSJE.BADPARAM) and it's that which is causing the 3 to appear.
Build the expression with the expression editor. You should get something like
Code: Select all
Convert(@FM:" ", "", Fetch_NumTblNames.$CommandOutput)
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.
-
- Participant
- Posts: 22
- Joined: Tue Mar 13, 2007 10:10 am
Pass Number of lines (as Numeric) from file to Numeric Loop
ray.wurlod wrote:Why is the activity variable contained in sharp signs?
Build the expression with the expression editor. You should get something likeCode: Select all
Convert(@FM:" ", "", Fetch_N ...[/quote] Ray, Was right your Variable should not have surrounded by ##; Tanks to all of you for Posting and helping us out. it work for me like below. [b]Trim(Convert(@FM,"",Read_Number_of_Lines.$CommandOutput))[/b]
Quest Expert