Tags:
create new tag
view all tags

Passing Fields or File Names

To pass FIELD(s):

PASS <fieldname1> FIELD 
PASS <fieldname2> FIELD 
RUN <ScriptName> $* 

The "$*" allows "ScriptName" to receive all the PASSed parameters, in their PASSed order. To change the order of outbound PASSed parameters, use "$2 $1 $3 etc..." instead of the "$*" parameter.

If you need to pass a "$" as part of your scriptname (say for example, you want to pass "$APPXPATH/DDD/AAA/filename"), preceed the "$"s that are not used in parameter passing with a backslash. For example:

PASS \$APPXPATH/VV/AAA/filename FIELD 


You can pass the fully qualified filename to an external program or script by using the PASS statement, such as:

PASS TAR CUSTOMER FILE 

This is similar to passing a field except that "path/filename" is provided rather than the contents of the file. The external program or script can then open the file and access it as needed.

(Note: this does not pass the ".dat" suffix of the "path/filename".)

See Invoking Windows Shell Functions for information on running Windows commands from APPX.

Comments:

Read what other users have said about this page or add your own comments.



Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2016-02-18 - JeanNeron
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback