CALL "WD2$REDIRECT" USING newURL                           [target]                     GIVING returnCode  | 
newURL  | PIC X(n)  | Specifies the link to the resource to be opened. It can be a link to a website, such as "https://www.veryant.com" or a link to a file, such as "resources/pdf_file.pdf".  | 
target  | PIC X(n)  | Optional parameter. It specifies the target where to open the document, and it can be any value accepted for an <a> html tag.  Valid values are: •	 "_blank" •	 "_parent" •	 "_self" •	 "_top" •	 framename (the name o a frame in a frameset).  If omitted, then "_blank" is assumed as default.  | 
0   | Operation successful.  | 
-1  | The redirect function is not available (program not running in a webDirect environment)  | 
-2  | Invalid or missing parameter.  | 
call "wd2$redirect" using "https://www.veryant.com" "_self"  |