Page 2 of 2

Re: Routine Not Found Error

PostPosted: Thu May 28, 2015 12:53 am
by Fabrice Lubela
Ok I got it thank you very much. Now How can i get rid of the comma in my output?

This is the ouptut i have without the error, thanks to you
Da2 = ISB
Pname = P9756P,
Da2 = ISB
Pname = P9760R,
Da2 = ISB
Pname = P9760S,
Da2 = ISB
Pname = P9846R,
Da2 = ISB
Pname = P9920P,
Da2 = ISB,
Pname = P9957P
Da2 = ISB
***

Re: Routine Not Found Error

PostPosted: Thu May 28, 2015 1:10 am
by enrico-sorichetti
it is against the forum rules to user PMs to solicit answers,
Please help. My future depends on it.

You are out of luck then :ugeek:

remember ...
replying to forum questions is
on voluntary base
our own time
interest of the topic
benevolence factor

claiming urgency, asking thru PMs, whining about future misfortunes
are sure ways of lowering the benevolence factor and the chances of getting help

Re: Routine Not Found Error

PostPosted: Thu May 28, 2015 1:51 am
by Fabrice Lubela
I am very sorry and will bound to the rules of the forum

Re: Routine Not Found Error

PostPosted: Thu May 28, 2015 4:20 am
by Pedro
You did not show what your data looks like. Likely, the comma comes from your input record. Add a comma to the PARSE statement so that the PARSE does not save it to the variables.

Parse var line_in Pname ',' Da1 Da2 Da3 Da4 Da5 Da6 Da7 Da8

Re: Routine Not Found Error

PostPosted: Thu May 28, 2015 4:34 am
by Pedro
I do not think this was explained well:
15 +++ FREE FILE(Z)
Error running TEST2, line 15: Routine not found

A quoted string indicates that it will be processed as the default host command. Because it is not a quoted string , rexx thinks it is a rexx instruction that rexx needs to process. The statement looks like a function call to FILE with a parameter of Z. Rexx tries to call a routine named 'FILE'. It fails because it does not exist.