This is not a major problem, but an annoying bug which I cannot seem to
fix, without creating a new routine, and rebuilding from scratch.
I am writing a routine to calculate NCD's, which will be called by the transform function.
While writing this routine, I save then compile and then test the routine, but at some point, the Return(Ans) has disappeared from the bar towards the bottom of the code tab in the routine.
Even the code Ans = NCD has gone. I re-insert and compile, but the routine will no longer run and provide a result!!
A) has anyone else had this problem in server on 7.1
B) Does anyone know how to get the Return(Ans) back in the bar
to save me having to create a new routine each time this bug occurs (4x now since starting of the rouhtine!).
thanks for your help.
Routine - Transform Function bug - missing Return(Ans)
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 19
- Joined: Wed May 17, 2006 4:34 am
- Location: Caerdydd
Re: Routine - Transform Function bug - missing Return(Ans)
are you creating "BEFORE/AFTER subroutine" or transform function.
-
- Charter Member
- Posts: 19
- Joined: Wed May 17, 2006 4:34 am
- Location: Caerdydd
Re: Routine - Transform Function bug - missing Return(Ans)
Its a transform function.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Never seen that behaviour in any release. Can you try adding a comment after the final executable line? Also check that you don't have too many End statements in the code.
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.
-
- Charter Member
- Posts: 19
- Joined: Wed May 17, 2006 4:34 am
- Location: Caerdydd
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Silly thing is, the source code is saved as a single string, so there's no sensible way it can lose a line or two. (The insensible way, of course, is bad coding of the client/server interface, but we don't have access to the source code for that. It would be sensible to report this through your support provider, particularly if you have a reproducible example.)
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.
-
- Charter Member
- Posts: 19
- Joined: Wed May 17, 2006 4:34 am
- Location: Caerdydd
Re: Routine - Transform Function bug - missing Return(Ans)
This works for mechrisponty wrote:This is not a major problem, but an annoying bug which I cannot seem to
fix, without creating a new routine, and rebuilding from scratch.
I am writing a routine to calculate NCD's, which will be called by the transform function.
While writing this routine, I save then compile and then test the routine, but at some point, the Return(Ans) has disappeared from the bar towards the bottom of the code tab in the routine.
Even the code Ans = NCD has gone. I re-insert and compile, but the routine will no longer run and provide a result!!
A) has anyone else had this problem in server on 7.1
B) Does anyone know how to get the Return(Ans) back in the bar
to save me having to create a new routine each time this bug occurs (4x now since starting of the rouhtine!).
thanks for your help.
1) Export routine in dsx format
2) Open it with notepad
3) Find strange characters like /a /b etc etc
4) Remove those characters
5) Save dsx file
6) re-import the routine
7) a little pray
8) voila !
CAUSE: typically the copy/paste human need, from another text processors to Ds editor
Bye.