Page 1 of 1

Design Studio - Rule - VALID GET

Posted: Thu Jul 12, 2012 8:27 pm
by sbalaji9
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())

Posted: Wed Aug 06, 2014 6:36 am
by paul.brett
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

Posted: Wed Aug 06, 2014 6:38 am
by paul.brett
Follow my Twitter feed for more hints and tips using IBM WebSphere TX

http://twitter.com/PaulBrettIBM