Hi, Does anybody knows how to use the GET command in the RULE with Retry option , I am trying to get filename and data in to a variable as below. Due to timing issue the map is failing. I know we can use the Retry command but not sure about the syntax. Would be greatly appreciated somebody can tell me. Thanks.
=VALID(GET("FILE",File1:record derived:834Control),"FILE NOT FOUND"+TEXT(LASTERRORCODE())+LASTERRORMSG())
Design Studio - Rule - VALID GET
-
- Participant
- Posts: 3
- Joined: Wed Aug 06, 2014 6:22 am
- Location: Cambridgeshire
Perhaps try:
=EITHER(GET("FILE",File1:record derived:834Control),GET("FILE",File1:record derived:834Control),GET("FILE",File1:record derived:834Control),"FILE NOT FOUND"+TEXT(LASTERRORCODE())+LASTERRORMSG())
or
=EITHER(GET("FILE",File1:record derived:834Control),GET("BAT","Sleep2.cmd")+GET("FILE",File1:record derived:834Control),GET("BAT","Sleep2.cmd")+GET("FILE",File1:record derived:834Control),"FILE NOT FOUND"+TEXT(LASTERRORCODE())+LASTERRORMSG())
...to introduce a pause between attempts.
Sleep2.cmd contains only the command:
@sleep 2
It seems to work
=EITHER(GET("FILE",File1:record derived:834Control),GET("FILE",File1:record derived:834Control),GET("FILE",File1:record derived:834Control),"FILE NOT FOUND"+TEXT(LASTERRORCODE())+LASTERRORMSG())
or
=EITHER(GET("FILE",File1:record derived:834Control),GET("BAT","Sleep2.cmd")+GET("FILE",File1:record derived:834Control),GET("BAT","Sleep2.cmd")+GET("FILE",File1:record derived:834Control),"FILE NOT FOUND"+TEXT(LASTERRORCODE())+LASTERRORMSG())
...to introduce a pause between attempts.
Sleep2.cmd contains only the command:
@sleep 2
It seems to work
Paul Brett
IBM WebSphere Transformation Extender (WTX) Client Support
IBM Software Services, Support and Success
Industry Cloud Solutions
IBM UK
IBM WebSphere Transformation Extender (WTX) Client Support
IBM Software Services, Support and Success
Industry Cloud Solutions
IBM UK
-
- Participant
- Posts: 3
- Joined: Wed Aug 06, 2014 6:22 am
- Location: Cambridgeshire
Follow my Twitter feed for more hints and tips using IBM WebSphere TX
http://twitter.com/PaulBrettIBM
http://twitter.com/PaulBrettIBM
Paul Brett
IBM WebSphere Transformation Extender (WTX) Client Support
IBM Software Services, Support and Success
Industry Cloud Solutions
IBM UK
IBM WebSphere Transformation Extender (WTX) Client Support
IBM Software Services, Support and Success
Industry Cloud Solutions
IBM UK