Home
openFT-Script Interface
Contents
1. NOTEMPTY system is not empty ft_err_PAR_REMOTE_ ft_notExist File directory does not exist in NOTEXIST the remote system ft_err_PAR_TERM ft_ignore The request has already termi nated ft_err_PAR_VALUE ft_panic Unknown parameters param eters are incompatible The name of the working directory workdir is invalid ft_err_PAR_VALUE_ACCESS _ ft_panic Invalid parameter ftamext gt accessmode ft_err_PAR_VALUE_AVAIL ft_panic Invalid parameter ftamext gt available 128 openFT Script Error messages Internal code Error code Description ft_err_PAR_VALUE_CANTIME ft_panic Invalid parameter cantime ft_err_PAR_VALUE_COMPR ft_panic Invalid parameter compress ft_err_PAR_VALUE_DIR ft_panic Invalid parameter direction ft_err_PAR_VALUE_ENCRYPT ft_resource Invalid parameter encryption ft_err_PAR_VALUE_FPWD ft_panic Invalid parameter mgmtpasswd ft_err_PAR_VALUE_FTYPE ft_panic Invalid parameter filetype ft_err_PAR_VALUE_LOCCCSN ft_paramError Invalid parameter locccsn ft_err_PAR_VALUE_MAXREC ft_paramError Invalid parameter maxrecsize ft_err_PAR_VALUE_PRIO ft_panic Invalid parameter priority ft_err_PAR_VALUE_REMACC ft_paramError Invalid parameter remaccount ft_err_PAR_VALUE_REMADM ft_auth Invalid parameter remadmis or invalid parameter remadm The user ID transfer admission in the remote system is invalid
2. openFT Script 19 ftshwact openFT Script Commands Description of the output Output is possible in tabular form and in CSV format It should be noted that for activities which have not yet been started the output from the ftshwact command is usually incomplete since the references present in the request have not yet been resolved and it is nottherefore possible to enter allthe desired output values In particular file and directory names in reference specifications are not fixed until runtime since they may be dependent on the operating system Output in table format The processing level of the activities is displayed in four columns Id Unique identification of the activity within the request This can be converted into an Xpath which mirrors the position of the activity in the tree which is statically predefined by the XML script Dynamic information is simply added for the foreach nodes sequence number in the foreach loop For more detailed information see the description ofthe XML statements for the openFT Script interface Sta Status of the statement The following status identifiers are possible W waiting The activity has not yet been started R running The activity has been started but has not yet been terminated T terminated The activity has been terminated without errors F failure The activity has been terminated with an error K killed The activity was cancelled by means of a faulthandler
3. You can also use the fault activity see section fault on page 59 to assign any other error codes However these may not begin with ft_ These are always considered to be normal error codes The cause of the error can be displayed with ftshwact If no faulthandler exists for an error then ftscript is terminated with an error status F The status and cause of termination can be displayed using ftshws 36 openFT Script Structure of an openFT script Error handling 3 3 1 Normal Ftscript error codes Normal errors relate to the objects which are to be transferred or to the involved computer The fault code can be intercepted by the faulthandler default see section default on page 64 error codes Description ft_access It is not possible to access a file directory computer ft_admin Administration error ft_auth Authentication error incorrect ID password authorizations ft_cantCreate It is not possible to create a file directory ft_cantDelete It is not possible to delete a file directory ft_configuration Configuration error ft_connection A connection error has occurred ft_corrupt A file does not correspond to the expected format ft_exist A file directory already exists ft_local The command script was terminated in the local system with an error ft_localFileStructure Error in the local file ft_notEmpty A directory f
4. ft_syntax A syntax error has occurred 38 openFT Script Structure of an openFT script Error handling 3 3 3 Restart Ftscripts can generally be restarted if for example they have been aborted due to a system crash Restrictions apply only to the following activities executeScript if repeatable no was specified createDirectory if faultIfExists was specified deleteFile or deleteDirectory if faultIfNotExists was specified If the openFT Script request is aborted during the processing of the statement then it is not possible to determine whether the activity has been completed In the above cases it is not clear when the restart is performed how the ftscript should continue to run If for example a directory that was to be created already exists then it is not possible to determine whether it was created by the aborted createDirectory activity or whether it already existed before the Ftscript request was run If the restart operation encounters this type of ambiguous situation then it reacts as follows Activity Response on restart executeScript Activity aborted with the error with the attribute repeatable no ft_resume Forbidden createDirectory If the directory already exists then with the attribute fault IfExists activity aborted with the error ft_recoveryCreateDirectory deleteFile or deleteDirectory If the file does not or no longer exist s with the attribute fault IfNotExists then
5. ft_connection The remote system is not acces sible ft_err_ CONNERR_UNKNOWN ft_configuration The remote system is unknown ft_err_INT_CRFILE ft_error Error during file generation ft_err_INT_FORK_errno ft_error Error on fork system call errno is the value of the errno variable This value is set by the defective system call ft_err_INT_INIT ft_error It is not possible to initialize the server ft_err_INT_INTERNAL_FN ft_panic Other internal error Function not supported ft_err_INT_INTERNAL_VERS ft_panic Other internal error Data structure version not supported ft_err_INT_MEM ft_resource Error on storage request ft_err_INT_OPEN_errno ft_error Error on open system call errno is the value of the errno variable This value is set by the defective system call ft_err_INT_OPENDIR_errno ft_error Error on opendir system call errno is the value of the errno variable This value is set by the defective system call ft_err_INT_PIPE_errno ft_error Error on pipe system call errno is the value of the errno variable This value is set by the defective system call openFT Script 125 Error messages Internal code Error code Description ft_err_INT_READ_errno ft_error Error on read system call errno is the value of the errno variable This value is set by the defective system call
6. lt list gt lt context gt lt listDirectory listObject FileList gt lt partner ref FileServer gt lt baseDir name frg_eis_19 datastore gt lt listDirectory gt lt foreach listRef FileList selectType file contextObject File execute parallel gt lt transferFile gt lt fromRemoteFile ref File gt lt partner ref FileServer gt lt directory name frg_eis_19 datastore gt lt fromRemoteFile gt lt toLocalTmpFile id tmpFile gt lt transferFile gt lt foreach listRef RemoteHostList selectType partner contextObject RemoteHost execute parallel gt lt transferFile gt lt fromLocalTmpFile use tmpFile gt lt toRemoteFile ref File gt lt partner ref RemoteHost gt lt directory name frg_eis_19 targetDir gt lt toRemoteFile gt lt transferFile gt lt foreach gt lt foreach gt lt ftscript gt 100 openFT Script openFT Script statements alphabetical list transferFile In the example the files in the directory frg_eis_19 Datastore are copied to the relevant frg_eis_19 targetDir target directory on the various computers listDirectory is used to identify the files on the FileServer The first foreach activity works through all the files identified on the FileServer Each file is copied to a temporary file tmpFile In the second foreach activity each temporary file is copied to the target directory frg_eis_19 targetDi
7. lt directory name frg_eis_08 gt lt deleteFile gt lt case gt lt faulthandler gt lt context gt lt transferFile gt lt context gt lt faulthandler gt lt default gt lt fault code intercept gt lt default gt lt faulthandler gt lt context gt lt fromLocalFile name W openFT ftscript Test data small bin mp3 gt lt toRemoteFile name targetl bin gt lt partner ref remote gt lt directory name frg_eis_08NotAvailable gt lt toRemoteFile gt lt transferFile gt 60 openFT Script openFT Script statements alphabetical list fault Example cont lt transferFile gt lt context gt lt faulthandler gt lt default gt lt fault code intercept gt lt default gt lt faulthandler gt lt context gt lt fromLocalFile name W openFT ftscript Test data large bin mp3 gt lt toRemoteFile name target2 bin gt lt partner ref remote gt lt directory name frg_eis_08 gt lt toRemoteFile gt lt transferFile gt lt parallel gt lt ftscript gt Two file transfers are performed in parallel If an error occurs during one of the transfers then this is indicated by the error code intercept This is intercepted in the faulthandler The other file transfer is cancelled ft_cancel The two target files are deleted in the faulthandler Any errors which occur are ignored Using this script either b
8. openFT Script selects the text string that is to be executed on the basis of the operating system specification in the partner definition or on the basis of the local operating system Ifthe operating system is unknown or no script matching the operating system is specified then the text string designated with script is executed Restrictions 1 A script e g bs2000Script unixScript may only occupy one line and has a limited length The length depends on the openFT version 2 In this version the script is not configurable 3 A return value other than zero is interpreted as an error and results in an ft_scriptError 84 openFT Script openFT Script statements alphabetical list script Format comment script bs2000Script unixScript windowsScript zosScript lt script id ID ref ID repeatable true false gt partner lt script gt Attributes Name Value Meaning id string A unique ID in the current context The context object is referenced under this ID ref string ID of another script object repeatable true false The default value is true The script may be repeated on a restart If false is specified then the script may not be repeated If on restart it is not possible to determine whether the script has run then the entire ftscript is cancelled Examples See section executeScript on page 56 openFT Script 85 sequence
9. createDirectory is frg_eis_03 myTmp and consists of 16 characters If the desired directory frg_eis_03 myTmp cannot be created for example because the path frg_eis_03 does not exist then the error ft_cantCreate occurs A further example of createDirectory can be found in section foreach on page 67 48 openFT Script openFT Script statements alphabetical list deleteDirectory 4 6 deleteDirectory You use deleteDirectory to delete a directory If you do not specify a partner then the directory is deleted under the local user ID You use baseDir see section baseDir on page 44 to define a directory under which the directory that is to be deleted is searched for The base directory name and the name specified with the directory name attribute are combined to form the directory name e You should note the response on a restart see section Restart on l page 39 Restrictions 1 The directory that is to be deleted must be empty 2 The length of the directory name baseDir and delete Directory is limited and depends on the openFT version The length is the number of characters plus 1 character if baseDir does not end with a Format lt deleteDirectory ref ID faultIfNotExists yes no dirnames gt comment context partner baseDir lt deleteDirectory gt Attributes Name Value Meaning ref string Reference to a directory context object faultIfN
10. ft_error Request lt request ID gt FTAM error lt 2 gt ft_code2094 ft_cantDelete Request lt request ID gt The file s retention period has not yet expired ft_code2095 ft_notSupported Request lt request ID gt Not possible to extend the file during transparent transfer ft_code2096 ft_notSupported Request lt request ID gt File structure not supported ft_code2109 ft_connection Request lt request ID gt Connection request rejected by local transport system ft_code2110 ft_connection Request lt request ID gt Data integrity checking has detected an error ft_code2111 ft_connection Encryption data integrity check not possible Encryption is disabled ft_code2112 ft_connection Request lt request ID gt Data integrity check is not supported by partner ft_code2113 ft_connection Request lt request ID gt User data encryption not possible for this request ft_code2114 ft_connection Request lt request ID gt Local system ID rejected by remote system lt partner gt ft_code2115 ft_connection Request lt request ID gt Request interrupted by remote system ft_code2116 ft_connection Local application lt 1 gt not defined ft_code2117 ft_connection Local application lt 1 gt not available ft_code2118 ft_connection Request lt request ID gt Authentication of loca
11. gt lt ftscript version 1 gt lt deleteFile name hugo trash gt lt partner name UnixP_1 systemType unix gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt directory name frg_eis_05 gt lt deleteFile gt lt ftscript gt Deletes the file hugo trash for the FTAC transfer admission FTACADM in the directory frg_eis_05 on the computer UnixP_1 Errors are not handled in this example and result in the openFT script being deleted 52 openFT Script openFT Script statements alphabetical list directory 4 8 directory You use directory to define a directory path You specify the partner where you use the corresponding directory object Restrictions There are no restrictions Format lt directory id ID ref ref dirnames gt comment lt directory gt Attributes Name Value Meaning id string A unique ID in the current context The context object is referenced under this ID ref string Name ofthe directory context object Data which is not present here is taken over from the directory context object after de referencing dirnames See section Directory name attributes on page 35 openFT Script 53 empty openFT Script statements alphabetical list 4 9 empty The activity empty does nothing but is required for formal purposes in order to intercept an error
12. not known ft_code764 ft_syntax Operand lt 1 gt specified more than once ft_code765 ft_syntax Too many list elements for operand lt 1 gt ft_code766 ft_syntax Too many positional operands ft_code767 ft_syntax Too many positional operands for lt 1 gt ft_code780 ft_syntax Internal error Insufficient operand memory ft_code781 ft_syntax Internal error Structure nesting too deep ft_code790 ft_syntax Available commands lt 1 gt ft_code791 ft_syntax Available list values lt 1 gt 122 openFT Script Error messages Internal code Error code Description ft_code792 ft_syntax Available operands lt 1 gt ft_code793 ft_syntax Available values lt 1 gt ft_code800 ft_error Request lt request ID gt Internal error Monitor file not accessible ft_code801 ft_error Request lt request ID gt Internal error ft_code802 ft_error Request lt request ID gt Warning Inconsistent monitor file lt 2 gt contents ft_code803 ft_error Request lt request ID gt Follow up processing could not be started ft_code804 ft_error Request lt request ID gt Incon sistent request data ft_code850 ft_error Internal error Monitor file not accessible ft_code851 ft_error Internal error ft_code852 ft_error Internal error Set instance lt 1 gt incompatible ft_code853 ft_error Reloading error Error code lt 1 gt ft_code854 ft_error No
13. record std The default value is std Specifies the record format Format undef var The standard openFT assignment applies fix data bin gt undef otherwise var If undef is specified then the record format is undefined e g in the case of binary formats If var is specified then the record format is variable e g in the case of text formats 1 record 1 line lines can be of different lengths If fix is specified then the record format is fixed e g f80 with recordFormat fix and maxRecSize 80 maxRecSiz 1 32756 Specifies the record size By default the openFT value e applies see openFT user manual If data char then maxRecSize specifies the length of a line to the cr If Files with a line length greater than 32756 bytes must be transferred with data bin ccsname string Specifies the Coded Character Set max see openFT user manual 8 characters filenames See section File name attributes on page 34 Example See example on page 91 openFT Script 103 transferFile openFT Script statements alphabetical list remoteFailureScript You use remoteFailureScript to execute a script on the remote system if data transfer fails see section script on page 84 The functionality rf of the openFT request is used see ft command in the openFT User Guide You should note that remoteFailureScript and a corresponding faulthandler in the ftscript see section faulthandler on page 62 may a
14. 1 gt comment context Activity lt ftscript gt Attributes Name Value Meaning version 1 Fixed value describing the Ftscript version Example See any example in the current manual openFT Script 73 list openFT Script statements alphabetical list 4 16 list A list contains multiple elements of type partner directory or file You can also generate a list using listDirectory see section listDirectory on page 75 foreach permits the iterative processing of the elements in the list see section foreach on page 67 Restrictions There are no restrictions Format lt list id ID gt comment partner directory file lt list gt Attributes Name Value Meaning id string A unique ID in the current context The context object is referenced under this ID Example See section foreach on page 67 74 openFT Script openFT Script statements alphabetical list listDirectory 4 17 listDirectory You use listDirectory to list the files and directories The located file or directory names are combined in a list The list is displayed in the parent context in a context object with the specified listObject Id The context object is available there after execution of the istDirectory activity If an error occurs during the execution of listDirectory then the object is not available e A listDirectory as
15. These can be operating instructions to openFT e g transferFile deleteFile or statements which control the processing flow e g parallel foreach Context object Context objects are described in an activity s context Each context object possesses an ID which must be unique in the context The context object is addressed referenced via this ID file transfer request FT request FT request see openFT request FTAC File Transfer Access Controll Part of openFT that offers extended access protection for file transfer and file management FTAM 1 document type for text files FTAM 3 document type for binary files openFT Script 139 Glossary FTAM file attributes All systems which permit file transfer via FTAM protocols must make their files available to their partners using a standardized description ISO 8571 To this end the attributes of a file are mapped from the physical filestore to a virtual filestore and vice versa This process distinguishes between three groups of file attributes kernel group describes the most important file attributes storage group contains the file s storage attributes security group defines security attributes for file and system access control FTAM partner Partner system which uses the FTAM protocols for communication ftsc File name suffix for an openFT Script file Interpreter Here the program which executes an openFT Script request Th
16. error messages 36 111 executeScript 56 F fault 59 faulthandler case 64 default 64 permitted error codes 137 file 66 file name attributes 34 foreach 67 fromLocalFile 97 fromLocalTmpFile 99 fromRemoteFile 102 ftacAdmission 82 ftscript 29 73 ftscript error codes 36 29 31 62 initialization 40 L list 74 listDirectory 75 N normal error codes 36 37 notational conventions 9 O openFT script components 29 diagnostic information 41 end 40 error 40 execution 40 initialization 40 running 40 structure 29 openFT Script 143 Index openFT Script statements 43 attributes 34 baseDir 44 comment 45 context 46 createDirectory 47 deleteDirectory 49 deleteFile 51 directory 53 directory name attributes 35 empty 54 error handling 36 executeScript 56 fault 59 faulthandler 62 file 66 file name attributes 34 foreach 67 ftscript 73 list 74 listDirectory 75 overview 43 parallel 78 partner 80 script 84 sequence 86 transferFile 88 P parallel 78 partner 31 80 ftacAdmission 82 processingAdmission 81 transferAdmission 82 userAdmission 82 processingAdmission 81 R referencing 29 31 remoteFailureScript 104 remoteSuccessScript 106 request queue 141 restart 39 root element 29 30 root element ftscript 29 running an openFT script 40 S script 84 script statements see openFT Script statements sequence 86 severe error codes 36 38 specifying directory names 35 specifying the fil
17. ft_err_PAR_VALUE_REMCCSN ft_paramError Invalid parameter remccsn ft_err_PAR_VALUE_REMFN ft_paramError Invalid parameter remfn The specified file does not exist access is not permitted ft_err_PAR_VALUE_REMPWD ft_paramError Invalid parameter rempasswd ft_err_PAR_VALUE_REMSYS ft_paramError Invalid parameter rem The specified remote system is unknown ft_err_PAR_VALUE_RFORM ft_paramError Invalid parameter record format ft_err_PAR_VALUE_RID ft_panic The request ID rid is invalid ft_err_PAR_VALUE_STARTTIM ft_panic Invalid parameter starttime E ft_err_PAR_VALUE_SYNC ft_panic Invalid parameter synchron ft_err_PAR_VALUE_TRANSP ft_panic Invalid parameter transparent ft_err_PAR_VALUE_WMODE ft_panic Invalid parameter writemode ft_err_PAR_VERS ft_panic The version of the data structure parameter list or output area is invalid ft_err_REMERR_EXIST ft_exist The remote file already exists ft_err_REMERR_INCONS ft_remoteFile Structure The remote file is inconsistent openFT Script 129 Error messages Internal code Error code Description ft_err_REMERR_MEM ft_cantCreate The remote file is assigned no space ft_err_REMERR_NOACCESS ft_access It is not possible to access the remote file ft_err_REMERR_NOCREAT ft_cantCreate The remote file cannot be created ft_err_
18. no longer available ft_code2202 ft_notExist Request lt request ID gt Remote system File directory lt remote file gt no longer found ft_code2203 ft_notExist Request lt request ID gt Remote system Home directory no longer found openFT Script 119 Error messages Internal code Error code Description ft_code2204 ft_resource Request lt request ID gt Remote system File directory lt remote file gt can no longer be assigned any space ft_code2205 ft_notExist Request lt request ID gt Remote system File owner no longer known ft_code2206 ft_error Request lt request ID gt Remote system Error during preprocessing postprocessing ft_code2207 ft_error Request lt request ID gt Remote system Exit code lt 2 gt during preprocessing postpro cessing ft_code2208 ft_auth Request lt request ID gt Remote system File password no longer valid ft_code2209 ft_auth Request lt request ID gt Remote system File directory lt remote file gt is now write protected ft_code2210 ft_remoteFile Request lt request ID gt Structure Remote system File structure error ft_code2211 ft_error Request lt request ID gt Remote system NDMS error lt 2 gt ft_code2212 ft_recoveryFailed Request lt request ID gt Remote system Recovery failed ft_code2213 ft_res
19. If zip is specified then zip compression is used writeMode replace new extend The default value is replace If the file exists then it is overwritten If the file does not exist it is created If extend is specified then the data is appended to the existing file If the file does not exist it is created If new is specified then a new file is created If a file with this name already exists then the activity is cancelled with the error ft_exist transparentMode true false The default value is false The file is transferred as standard If true is specified then a transparent transfer is performed e g in the case of transfers from a BS2000 system to another BS2000 system via a Windows Unix system dataEncryption yes no onlyDatalntegrity The default value is no The user data is not encrypted If yes is specified then the user data is encrypted for settings see the openFT user manual If onlyDatalntegrity is specified then only the data integrity is checked 90 openFT Script openFT Script statements alphabetical list transferFile Examples 1 File transfer with remoteSuccessScript remoteFailureScript lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt script id anything ok gt lt unixScript gt lt LCDATALecho anything ok gt frg_eis_15 status txtl gt lt unixScript gt lt windowsScript g
20. a direct child element of a parallel activity does not l return a usable event list see section parallel on page 78 You can use baseDir see section baseDir on page 44 to define a base directory under which the directory that is to be listed is searched for The base directory name and the name specified with the directory name attribute are combined to form the directory name The base directory itself is not listed in the result Restrictions 1 You specify the name of the list context object which is displayed in the parent context No context element with this name may exist 2 The length of the directory name baseDir and listDirectory is limited and depends on the openFT version The length is the number of characters plus 1 character if baseDir does not end with a 3 You may only use the wildcard symbol to list a directory tree in full Format lt listDirectory listObject ID dirnames gt comment context partner baseDir lt listDirectory gt openFT Script 75 listDirectory openFT Script statements alphabetical list Attributes Name Value Meaning ref string Reference to a directory context object listObject string Name of the list context object which is displayed in the parent context No context element with this name may exist dirnames See section Directory name attributes on page 35 To list a directory tree in ful
21. all its running child activities and output an error message An error with the specified faultcode error code is output The error is intercepted with the appropriate faulthandler default or case see section faulthandler on page 62 The activity associated with the faulthandler is executed All file transfer requests that are still running are also cancelled ft_cancel This results in the execution of the remoteFailureScript see section remoteFailure Script on page 104 If it is not possible to assign a faulthandler to the error code then the entire script is aborted Restrictions There are no restrictions Format lt fault code faultcode gt comment lt fault gt Attributes Name Value Meaning code Text The error code which can be intercepted in a faulthandler openFT Script 59 fault openFT Script statements alphabetical list Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt parallel gt lt context gt lt partner id remote name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt faulthandler gt lt case code intercept gt lt deleteFile name targetl bin gt lt partner ref remote gt lt directory name frg_eis_08NotAvailable gt lt deleteFile gt lt deleteFile name target2 bin gt lt partner ref remote gt
22. and Windows systems 8 openFT Script Preface Notational conventions e openFT for UNIX systems and Windows systems openFT Script Interface This manual is intended for XML programmers and describes the openFT Script commands the XML statements for the openFT Script interface il Many of the functions described in the manuals are also available in the openFT graphical interface A detailed online help system that describes the operation of all the dialogs in the graphical interface is supplied together with the graphical interface The online help system also contains a complete description of the openFT commands 1 3 Notational conventions The following notational conventions are used throughout this manual typewriter font typewriter font is used to identify entries and examples italics In running text commands statements names variables and values are indicated by italic letters e g file names and host names i indicates notes Additional conventions are used for the command descriptions and the program interface 1 4 README files Information on any functional changes and additions to the current product version can be found in product specific README files openFT Script 9 Requirements for openFT Script Preface 1 5 Requirements for openFT Script openFT Script is supplied with openFT and requires openFT V10 to be installed on the executing host All the addressed partners mus
23. current list element foreach_S as foreach_P parallel sequence sendFile Specifies the remote file in the following form lt partner gt lt file name gt Partner with file name if both are known unknown lt file name gt if the partner is not yet known unknown unknown if both are not yet known openFT Script 21 ftshwact openFT Script Commands Activity ActivityObject Meaning sendFile lt partner gt ref lt contextld gt if contextld foreach contextObject cont and the resolution is not yet known because it has not yet been passed through lt file name gt in the case of requests which have already been started this is the name specified in the FT request In the case of requests which have not yet been started this name is derived from the operating system specific name specified in the XML file e g unixName and extended by the directory specifications rcvFile as sendFile deleteFile specifies the remote file as in sendFile with partner if the file is local without partner lt file name gt like sendFile is determined from the FT request in the case of requests that have already been started and from the XML file in the case of requests that have not yet started A local file name would be output as an absolute file name in the case of a started request and asa relative path name in the case
24. executed ifthe current error code is found in its list of error codes The case activity replaces the activity in which the faulthandler is located The context objects of the replaced activity are copied to the context of the case activity if still present The contexts of the child activities including those in which the error occurred are no longer accessible For information on execution see section sequence on page 86 Format lt case code codelist gt comment context Activity lt case gt Attributes Name Value Meaning code codelist A list of error codes for which this case activity is to be executed The individual error codes are separated from one another by spaces default If the current error code is not found in any of the case elements then the default activity is executed This applies to all error codes with the exception of the severe Ftscript error codes see section Severe Ftscript error codes on page 38 for which the default branch of the faulthandler is ignored The default activity replaces the activity in which the faulthandler is located The context objects of the replaced activity are copied to the context of the default activity if still present The contexts of the child activities including those in which the error occurred are no longer accessible For information on execution see section sequence on page 86 64 openFT Scrip
25. explanation of the syntax see the following section Syntax of the openFT Script statements The statement s attributes their values and the meaning of these values Optional attributes are indicated by a The examples illustrate the use of the statement 4 1 Syntax of the openFT Script statements The openFT Script statements are described in the following sections The syntax of the openFT Script statements is specified in the Format section in the description of each statement The following symbols are used Symbol Meaning a No element or an element a Optional attributes are also indicated by a a No element or any number of elements a a One element a or multiple elements a Either or a b Either exactly one element a or one or more elements b Euro The current element with its attributes is presented in angle brackets Elements can be combined to form an activity Such combined elements are printed without the angle brackets openFT Script 43 baseDir openFT Script statements alphabetical list 4 2 baseDir You use baseDir to define a base directory for those openFT Script statements that refer to a driectory i e createDirectory see page 47 deleteDirectory see page 49 listDirectory see page 75 When executing one of these statements the name specified or referrred with the statement is preceded with baseDir separate
26. identification is returned by the ftscript command State See table format Sta CreationTime Time at which the openFT Script request was created in the format yyyy mm dd hh mm ss FtscriptFileName Path name of the script file Error Cause of error in clear text in the case of openFT Script requests with status F otherwise empty User Ftscriptid FtscriptFileName and if applicable Error are output enclosed in double quotes openFT Script 27 28 openFT Script 3 Structure of an openFT script 3 1 Components of an openFT script An openFT script consists of activities Each activity has a context The context may also describe error handling mechanisms faulthandler e Activities may take the form of instructions issued to openFT e g trans ferFile deleteFile or instructions which control the workflow e g parallel foreach The instructions are described in chapter openFT Script state ments alphabetical list on page 43 e Files directories scripts and partners can be stored as context objects in the context By means of referencing it is possible to re use this type of context object in the activity and the underlying activities provided that these do not possess a context object with the same name Re use is not possible outside of the activity in which the context object is defined Ifafaultoccurs within an activity then error handling can be used to s
27. locked against concurrent access ft_code2078 ft_access Request lt request ID gt lt local file gt no longer available ft_code2079 ft_notExist Request lt request ID gt lt local file gt no longer found ft_code2080 ft_notExist Request lt request ID gt Home directory no longer found ft_code2081 ft_resource Request lt request ID gt lt local file gt can no longer be assigned any space ft_code2082 ft_notExist Request lt request ID gt File owner no longer known ft_code2083 ft_error Request lt request ID gt Error during preprocessing postpro cessing ft_code2084 ft_error Request lt request ID gt Exit code lt 2 gt during prepro cessing postprocessing ft_code2085 ft_auth Request lt request ID gt File password no longer valid ft_code2086 ft_auth Request lt request ID gt lt local file gt is now write protected ft_code2087 ft_localFile Request lt request ID gt Structure File structure error ft_code2088 ft_error Request lt request ID gt NDMS error lt 2 gt ft_code2089 ft_recoveryFailed Request lt request ID gt Recovery failed ft_code2090 ft_error Request lt request ID gt Error in completing file transfer ft_code2092 ft_auth Request lt request ID gt Access to lt local file gt is no longer permitted 114 openFT Script Error messages Internal code Error code Description ft_code2093
28. name frg_eis_14 gt lt toRemoteFile gt lt transferFile gt lt sequence gt lt ftscript gt The files text txt and bin mp3 are delivered one after the other First of all the first request in the request queue is submitted Once this has been completed and if no error message is triggered the second request in the request queue is submitted openFT Script 87 transferFile openFT Script statements alphabetical list 4 22 transferFile You use transferFile to perform a file transfer transferFile starts the file transfer and waits inside ftscript for the end of the file transfer The file transfer itself can be restarted If you specify remoteSuccessScript see section remoteSuccessScript on page 106 or remoteFailureScript see section remoteFailureScript on page 104 then the corresponding script is subsequently run on the remote computer For local scripts you should use faulthandlers see section faulthandler on page 62 or executeScript see section executeScript on page 56 Types of file transfer You use transferFile to transfer files as follows e File transfers from remote to local fromRemoteFile toLocalFile e File transfers from local to remote fromLocalFile toRemoteFile e File transfers from remote to remote can be accomplished by means of two sequential transferFile activities e g in a sequence activity File transfer from remot
29. openFT Script statements alphabetical list 4 21 sequence You use sequence to execute the activities in a sequence one after the other in the specified order Each child activity can use the results of the preceding child activities If an activity adds new context objects to the sequence context e Q transferFile toLocalTmpFile or listDirectory then the following activities can access the new data Restrictions There are no restrictions Format lt sequence gt comment context Activity lt sequence gt Attributes There are no attributes 86 openFT Script openFT Script statements alphabetical list sequence Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt sequence gt lt transferFile gt lt fromLocalFile name W openFT ftscript Test data small text txt data char gt lt toRemoteFile name text txt gt lt partner name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt directory name frg_eis_14 gt lt toRemoteFile gt lt transferFile gt lt transferFile gt lt fromLocalFile name W openFT ftscript Test data large bin mp3 data bin gt lt toRemoteFile name bin mp3 gt lt partner name WindowsP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt directory
30. or other actions in a faulthandler see section faulthandler on page 62 Restrictions There are no restrictions Format lt empty gt comment lt empty gt Attributes There are no attributes 54 openFT Script openFT Script statements alphabetical list empty Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt transferFile gt lt context gt lt faulthandler gt lt default gt lt empty gt lt default gt lt faulthandler gt lt context gt lt fromRemoteFile name packl bin gt lt partner name someHost gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt directory name frg_eis_06 gt lt fromRemoteFi le gt lt toLocalFile name target bin gt lt directory name frg_eis_06 gt lt toLocalFile gt lt transferFile gt lt ftscript gt If errors occur in transferFile then execution of the Ftscript continues never theless i e the Ftscript request is terminated with status T In the case of severe errors see section Severe Ftscript error codes on page 38 the Ftscript request is terminated with the corresponding error message since the default faulthandler is ineffective openFT Script 55 executeScript openFT Script statements alphabetical list 4 10 executeScript You use executeScript to run a script The scri
31. request is started via an ftscript command a means that all the user s openFT Script completed requests are to be deleted 14 openFT Script openFT Script Commands ftdels Return code 0 OK 4 Syntax error 51 Error while outputting an Ftscript user 54 Ftscript ID not found 56 openF T Script has not completed 250 Internal error openFT Script 15 ftscript openFT Script Commands 2 4 ftscript Starting an openFT Script request The ftscript command checks the specified script file and executes the state ments it includes The script file must contain a valid XML document which corresponds to the schema for the openFT Script interface It must also be possible to read the file using the caller s ID The maximum number of users who may be owner of openFT Script requests is 1024 This includes requests that are terminated but not yet deleted If errors occur during verification then the script file is not started and the errors are output at stderr If the script file starts correctly then the following message is output at stderr ftscript started successfully Id ftscript id Information about the openFT Script request is stored in the internal openFT user memory during execution and through to expiry of the retention period As a consequence users can view the output ftscript id in order to obtain information about the status and success of the operation ftscript is restartable i e the processing of
32. takes place in parallel and the files are also worked through in parallel at each computer autoDataSpec differentiates between text and binary files see section AutoDataSpec on page 94 When the script is run the files are distributed to all the computers Since no faulthandler was used in the example the script is terminated with an error 2 Deleting the file tree lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt partner id remote name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt context gt lt listDirectory name frg_eis_10 listObject Flist gt lt partner ref remote gt lt listDirectory gt lt foreach listRef Flist selectType file contextObject delFile execute parallel gt lt deleteFile ref delFile gt lt partner ref remote gt lt deleteFile gt lt foreach gt lt foreach listRef Flist selectType directory contextObject delDir execute sequential direction reverse gt lt deleteDirectory ref delDir gt lt partner ref remote gt lt deleteDirectory gt lt foreach gt lt ftscript gt In this example everything in the directory frg_eis_10 on the computer UnixP_1 is deleted under the FTAC transfer admission FTACADM listDirectory see section listDirectory on page 75 is used to determine all the
33. the activity is aborted with the error ft_recoveryFailed This response may occur ifthe openFT instance has been switched Ifthe openFT instance is deleted then all running openFT Script requests are inter rupted They restart when the instance is switched In the above cases processing waits for approximately 2 seconds for the end of the activity after interruption of the request In the case of lengthy executeScript activities this may not be enough with the result that this Ftscript is aborted with an error when a restart attempt is made openFT Script 39 Running an openFT script Structure of an openFT script 3 4 Running an openFT script When a script is run each activity passes through the following states initialization execution end error Initialization The context is provided Execution In the case of external activities the openFT functionality is executed In the case of internal activities the corresponding statement is executed If an error occurs during the execution of an activity than an error or fault is output together with an error code The activity switches to the error state End The end of the activity is reached if execution is terminated without an error Data may be displayed in the higher level context The activity is terminated Processing continues with the next activity If there are no further activities then the ftscript is terminated Error The error
34. the form of an FTAC transfer admission Format lt ftacAdmission ftacAdmission ftac gt Attributes Name Value Meaning ftacAdmission string FTAC transfer admission see openFT user guide userAdmission You use userAdmission to specify the admission in the form of the login LOGON access data user ID password and account Avoid using userAdmission in this version openFT Script requires the password to be specified in plain text If possible use the more reliable fracAdmission instead i 82 openFT Script openFT Script statements alphabetical list partner Format lt userAdmission userld userld userAccount account userPassword password gt comment lt userAdmission gt Attributes Name Value Meaning userId string User ID userAccount string Account information userPassword string Password for the user ID openFT Script 83 script openFT Script statements alphabetical list 4 20 script You use script to specify a text string which is to be executed as an operating system command A context object of type script can be referenced in the executeScript activity or by remoteSuccessScript Or remoteFailureScript The command must be written in the operating system specific syntax of each operating system This means that in a script object you can specify a different text string for each operating system
35. the openFT request is used see ft command in the openFT User Guide See also section executeScript on page 56 Additional notes The script is also executed if a running data transfer is aborted with a fault inter nally ft_cancel is issued if a fault occurs see section fault on page 59 and the openFT user manual Restrictions 1 The remoteSuccessScript activity uses the partner from the associated transferFile activity see section transferFile on page 88 2 The specification of repeatable in referenced script objects is ignored Format lt remoteSuccessScript ref ID gt comment script bs2000Script unixScript windowsScript zosScript lt remoteSuccessScript gt Attributes Name Value Meaning ref string Reference to a script context object Any partner described there is not evaluated The partner in the associated transferFile activity is used Example See example on page 91 106 openFT Script openFT Script statements alphabetical list transferFile toLocalFile You use toLocalFile to specify the local target file for file transfer See also section file on page 66 Restrictions 1 The length of the file name directory and toLocalFile is limited and depends on the openFT version The length is the number of characters plus 1 character if directory does not end with a 2 toLocalFile must not contain any partne
36. undef var fix maxRecSize int ccsname string filenames gt comment directory autoDataSpec lt fromLocalFile Attributes Name Value Meaning ref string Reference to another file object partner and directory are taken over from this if you have not specified the elements here see section Referencing on page 31 data auto The default value is auto Specifies the data type charlbin If char bin or user are specified then the AutoDataSpec speci user fication is ignored see section AutoDataSpec on page 94 record std The default value is std Specifies the record format Format undef The standard openFT assignment applies var fix data bin gt undef otherwise var If undef is specified then the record format is undefined e g in the case of binary formats If var is specified then the record format is variable e g in the case of text formats 1 record 1 line lines can be of different lengths If fix is specified then the record format is fixed e g f80 with recordFormat fix and maxRecSize 80 openFT Script 97 transferFile openFT Script statements alphabetical list Name Value Meaning maxRecSiz 1 32756 Specifies the record size By default the openFT value e applies see openFT user manual If data char then maxRecSize specifies the length of a line to the cr If Files with a line length greater than 32756 bytes must be transfe
37. yes no dirnames gt comment context partner baseDir lt createDirectory gt Attributes Name Value Meaning ref string Reference to a directory context object faultIfExists yesIno The default value is no If the directory exists then no message is output If yes is specified then ft_exists is output if the directory already exists On a restart see section Restart on page 39 ft_recoveryCreateDirectory is output This may also occur if the instance is switched dirnames See section Directory name attributes on page 35 openFT Script 47 createDirectory openFT Script statements alphabetical list Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt directory id myDir name myTmp gt lt context gt lt createDirectory ref myDir gt lt partner name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt baseDir name frg_eis_03 gt lt createDirectory gt lt ftscript gt Creates the directory myTmp for the FTAC transfer admission FTACADM in the directory frg_eis_03 on the computer UnixP_1 No error is output ifthe directory already exists Once createDirectory has run the directory exists frg_eis_03 is specified as baseDir The directory that is to be created is refer enced The entire directory path base
38. D is used to address reference the context object If a referenced context object is not found in the current context then a recursive search is performed in the higher level contexts Context objects other context objects with the same ID in higher level contexts A context is always present even if it has not been defined There are certain activities foreach listDirectory which automatically incorporate data in a context The context objects are described in more detail in section context on page 46 3 1 3 Referencing openFT Script also allows you to combine context objects For example a partner see section partner on page 80 does not have to be specified in full at every location You can transfer a partner to a context object and re use it via referencing The following rules apply to de referencing 1 Arefattribute references a context object with the specified ID and the object type of the context object e g file partner 2 The search is continued in the parent context if no suitable object is found in the current object If no suitable context object is found there then the search is continued in its parent context Multi level referencing is permitted 3 If no suitable context object is found then the script is terminated with the error ft_reference see section Error handling on page 36 4 ref A is permitted in a context object with D A In this case ref always refers to the par
39. File ref file gt lt directory name W openFT ftscript Test data small gt lt autoDataSpec charPattern txt userPattern tab dat default bin gt lt fromLocalFile gt lt toRemoteFile ref file gt lt partner ref host gt lt directory name frg_eis_17 gt lt toRemoteFile gt lt transferFile gt lt foreach gt lt foreach gt lt ftscript gt In the example the file list FileList of local files is transferred to all the computers in the HostList The file transfer modes are activated in accordance with the autoDataSpec specification txt files are converted in accordance with the target system type All unknown file types are transferred in binary form tab and dat are defined for user transfers 96 openFT Script openFT Script statements alphabetical list transferFile fromLocalFile You use fromLocalFile to specify the local source file for file transfer The transfer type data type can be derived from the file name by means of autodataSpec see section AutoDataSpec on page 94 Restrictions 1 The length of the file name directory and fromLocalFile is limited and depends on the openFT version The length is the number of characters plus 1 character if directory does not end with a 2 fromLocalFile must not contain any partner specification after de referencing Format lt fromLocalFile ref ID data auto char bin user recordFormat std
40. REMERR_NOTEXIST ft_notExist The remote file cannot be found ft_err_ REMERR_REMADM ft_auth The remote transfer admission is invalid ft_errorEncoding ft_resource Code Cp850 not supported Install extended language support for Java ft_errorOnCancel ft_error Error during abort ft_errorReadingCsv ft_resource User information could not be read ft_errorReadingExec ft_resource Default error output from script execution could not be read ft_errorReadingFtsadmErr ft_resource Default error output from fsadm command could not be read ft_errorWaitingForExec ft_resource Error waiting for the end of script execution ft_errorWaitingForFtsadm ft_resource Error waiting for the end of fsadm command ft_execFailed ft_error Script execution could not be started ft_exist ft_exist Directory already exists ft_exit_ lt exitcode gt ft_remote The command script was termi nated in the remote system with the error lt exitcode gt ft_exit_255 ft_local The command script was termi nated in the local system with an error ft_featuresNotSupported ft_error The parser does not support necessary features ft_ftsadmFailed ft_error IO exception on start of ftsadm ft_housekeepingError ft_error Housekeeper terminated with unknown error Is repeated 130 openFT Script Error messages Internal code Error code Descri
41. Script requests You can also specify a ftscriptid in order to select a specific openFT Script request Format ftshws h csv t v st WJIRIIETIITFIINITITCHEX 1 u lt user ID 1 32 gt a lt ftscriptid gt Description h Outputs the command syntax on screen Any specifications after h are ignored csv The information is output in CSV format t The openFT Script requests are displayed sorted on generation time beginning with the last request By default the requests are displayed in alphabetical order V Diagnostic information is also output verbose If v is specified then in the case of openFT Script requests which terminate with an error the cause of the error is output in a second line after the tabular information In CSV format the v option is ignored st W R I T I F I I I C X displays openFT Script requests with the specified status see Sta field in Output in table format on page 26 You can specify multiple statuses one after the other e g st WRT u user ID a User ID for which openFT Script requests are output or under which the specified request is searched for Only administrators may specify or a all user IDs The default value is the calling party s user ID openFT Script 25 ftshws openFT Script Commands ftscriptid Identification of the openFT Script request This is output if the openFT Script request is started via an ftscr
42. Spec directory file list partner Or script A context exists for every activity If no context element is specified the an empty context is explicitly created All the context objects and faulthandlers of the higher level contexts are visible provided that they are not hidden by context objects or faulthandlers with the same name Restrictions There are no restrictions Format lt context gt ContextObject faulthandler lt context gt Attributes There are no attributes 46 openFT Script openFT Script statements alphabetical list createDirectory 4 5 createDirectory You use createDirectory to create a directory If you do not specify a partner then the directory is created under the local user ID You can use baseDir see section baseDir on page 44 to define a base directory under which the specified directory is created e You should note the response on a restart see section Restart on l page 39 Restrictions 1 If you specify a directory path in the name attribute then all the directories down to the lowest level must already exist 2 If you specify a base directory then this must already exist 3 The length of the directory name baseDir and createDirectory is limited and depends on the openFT version The length is the number of characters plus 1 character if baseDir does not end with a Format lt createDirectory ref ID faultIfExists
43. _eis_15 gt lt fromRemoteFile gt lt toLocalFile name status txt gt lt directory name frg_eis_15 gt lt toLocalFile gt lt transferFile gt lt ftscript gt The file bin mp3 is transferred from the partner remote to the local file bin mp3 The file status txt is then created with the following contents if transfer is OK anything ok anything ok if an error occurs anything crap anything crap If errors occur during the compilation of the file status txt then the script is aborted 92 openFT Script openFT Script statements alphabetical list transferFile 2 File transfer from remote to remote lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt partner id remotel name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt partner id remote2 name WindowsP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt context gt lt transferFile gt lt fromRemoteFile name data txt gt lt partner ref remotel gt lt directory name frg_eis_16 gt lt autoDataSpec charPattern txt binPattern dat mp3 gt lt fromRemoteFile gt lt toLocalTmpFile id tmp gt lt transferFile gt lt transferFile gt lt fromLocalTmpFile use tmp gt lt
44. artner directory direction forward reverse gt comment context Activity lt foreach openFT Script 67 sequential foreach openFT Script statements alphabetical list Attributes Name Value Meaning listRef string Name of a valid context object of type list contextObject string Name of the foreach context object which takes on the value of the current list element This must not be defined in the foreach context It is defined implicitly The type of context object corresponds to the type set in the selectType attribute execute parallel The default value is sequential The sequences are executed one after the other If parallel is specified then the sequences are started in parallel selectType partner Filters the elements of the specified type file from the list Only the filtered elements directory are iterated direction forward The default value is forward reverse The list is worked through forwards If reverse is specified then the list is worked through backwards 68 openFT Script openFT Script statements alphabetical list foreach Examples 1 Distributing files lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt list id FileList gt lt file name bin mp3 gt lt file name text txt gt lt list gt lt list id HostList gt lt partner name UnixP_1 systemType unix
45. at ccsname and autoDataSpec specifications in the fromRemoteFile toLocalTmpFile activity apply implicitly When a TmpFile is created from fromRemoteFile then these specifications are inherited Restrictions You may only use fromLocalTmpFile after a fromRemoteFile toLocalTmpFile activity since the file TmpFile already exists and must be accessible in the current context For more information see section fromRemoteFile on page 102 and section toLocalTmpFile on page 108 Format lt fromLocalTmpFile use tmpID gt Attributes Name Value Meaning use string Reference to a file TmpFile which can be accessed in the current context This file must previously have been created with a transferFile using toLocalTmpFile openFT Script 99 transferFile openFT Script statements alphabetical list Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt partner id FileServer name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt list id RemoteHostList gt lt partner name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt partner name WindowsP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt
46. aulthdl lt triggering activity id gt openFT Script 23 ftshwact openFT Script Commands Output in CSV format Id State Activity ActivityObject Partner AddInfo nrElements StartTime Error The output contains the following information Id See table format on page 20 State See table format on page 20 Activity See table format on page 21 ActivityObject See table format enclosed in double quotes otherwise the path name is output without partner specifications only the faultcodes are output for the faulthandler activity Partner In the case of path related activities the partner or partner specification that would be present in front of the path name in table format enclosed in double quotes Otherwise empty Addinfo For sendFile and rcvFile TID enclosed in double quotes if the activity has already started Otherwise empty For faulthdl the triggering activity Id enclosed in double quotes Otherwise empty nrElements In the case of a started foreach number of loop passes In the case of a started parallel or sequence number of sub activities StartTime Start time in the format yyyy mm dd hh mm ss Error In the case of requests with the status F case of error in clear text enclosed by double quotes Otherwise empty 24 openFT Script openFT Script Commands ftshws 2 6 Display openFT Script requests Outputs information about the status of a user s openFT
47. ccess Request lt request ID gt Remote system Attributes could not be modified 116 openFT Script Error messages Internal code Error code Description ft_code2144 ft_cantCreate Request lt request ID gt Remote system File directory lt remote file gt could not be created ft_code2145 ft_notExist Request lt request ID gt Remote system CCS name unknown or not supported ft_code2146 ft_notExist Request lt request ID gt Remote system Higher level directory not found ft_code2147 ft_exist Request lt request ID gt Remote system File directory lt remote file gt already exists ft_code2148 ft_notSupported Request lt request ID gt Remote system Transfer of file generation groups not supported ft_code2149 ft_access Request lt request ID gt Remote system Error accessing lt remote file gt ft_code2150 ft_syntax Request lt request ID gt Remote system Resulting file name too long ft_code2151 ft_access Request lt request ID gt Remote system File locked against concurrent access ft_code2152 ft_paramError Request lt request ID gt Remote system No file or directory name specified ft_code2153 ft_auth Request lt request ID gt Remote system Invalid management password ft_code2154 ft_access Request lt request ID gt Remote system File direc
48. ciated fromRemoteFile activity These are then re used when the fromLocalTmpFile activity is called see section fromLocalTmpFile on page 99 The temporary file is deleted automatically as soon as the associated file object is exited See also section file on page 66 Restrictions 1 The length of the file name directory and toLocalTmpFile is limited and depends on the openFT version The length is the number of characters plus 1 character if directory does not end with a 2 You can only access the generated temporary file with use tmpID from a fromLocalTmpFile 3 The transferFile fromRemoteFile action must be concluded before you use transferFile toRemoteFile to access the temporary file 108 openFT Script openFT Script statements alphabetical list transferFile Format lt toLocalTmpFile id tmpID gt Attributes Name Value Meaning id string ID of the temporary file in transferFile elements associated with the parent context You can only access this ID with use tmpID from a fromLocalTmpFile Example See example in section fromLocalTmpFile on page 100 openFT Script 109 transferFile openFT Script statements alphabetical list toRemoteFile You use toRemoteFile to specify the remote target file for file transfer See also section file on page 66 Restrictions 1 The length of the file name directory and toRemoteF
49. cified and the associated partner or the associated local system is a Windows system An empty string must be explicitly specified You can use the notation or the Windows specific notation unixName string Unix system specific path The name is used if it has been specified and the associated partner or the associated local system is a Unix system An empty string must be explicitly specified You may only use the notation zosName string z OS specific addressing see openFT User Guide openFT Script 35 Error handling Structure of an openFT script 3 3 Error handling The openFT script is checked when it is read If errors are identified then the openFT script is not run When ftscript is started you see a corresponding error message and a return code see section ftscript Starting an openFT Script request on page 16 If the check is completed successfully then the openFT script is executed in another process If an error occurs during execution then the cause of the error is logged Every error message has a unique internal code and is assigned to a specific error code The errors are assigned to one of the following two categories on the basis of the error codes normal Ftscript error codes severe Ftscript error codes The table listing all these error messages can be found in chapter Error messages on page 111 The error codes assigned by openFT Script always start with ft_
50. ctivity later d Level depth Depth of the levels to be displayed All activities whose activity ID is not greater than the specified level number are displayed The level number is the number of index numbers separated by dots Examples from a request with activity IDs 1 1 2 1 2 1 1 1 2 1 2 1 2 2 1 1 2 2 2 and1 3 the option d 2 selects the activities with the activity IDs 1 1 2 and 1 3 18 openFT Script openFT Script Commands ftshwact c Chapter Chapter corresponding to the activities to be displayed Those activities are output that are a level below the activity with the activity ID specified as the chapter In the above example these are c 1 1 2 and 1 3 for c 1 2 1 2 1 1 1 2 1 2 1 2 2 1 and 1 2 2 2 st W R T F K D C Display activities with the specified status You can specify multiple statuses one after the other e g st WRT Activity 1 is always output since it displays the execution status of the entire script u user ID User ID under which the specified request is searched for Only administrators may input a user ID The default value is the calling party s user ID ftscriptid Identification of the openFT Script request This is output if the openFT Script request is started via an ftscript command Return code 0 OK 4 Syntax error 51 Error while outputting an Ftscript user 53 Ftscript section not found 54 Ftscript ID not found 250 Internal error
51. d If the file s data type is unknown then it is determined on the basis of the file name using pattern recognition The only pattern currently permitted is xxx since only the file name suffix is checked The file name specified for the actual transfer is used If a Unix specific file name and a Windows specific file name are specified then the appropriate file name is analyzed depending on the partner in question i The file types are described in the openFT user manual Data type Format Example char Text format xml bin Binary format doc in a Windows system user User format AutoDataSpec describes which pattern is assigned to which data type If multiple patterns for different file formats match a file name then the file type is determined in the sequence bin char user Restrictions 1 Currently the only pattern permitted is xxx Only the file name suffix is checked 2 If an explicit data type is specified for the file after de referencing then AutoDataSpec is not evaluated 94 openFT Script openFT Script statements alphabetical list transferFile Format patternList lt autoDataSpec ref ID charPattern patternList binPattern userPattern patternList default char bin user gt comment lt autoDataSpec gt Attributes Name Value Meaning ref string Reference to an AutoDataSpec context object binPattern patternli
52. d by a path separator baseDir should comprise the absolute or relative directory name after possible references have been resolved Therefore the name specified with the statement should be the name of a subdirectory of this directory Restrictions You can only use baseDir with the openFT Script statements which are listed above Format See the corresponding openFT Script statement Attributes Name Value Meaning dirnames See section Directory name attributes on page 35 Examples See section createDirectory on page 47 section deleteDirectory on page 49 section listDirectory on page 75 44 openFT Script openFT Script statements alphabetical list comment 4 3 comment You use comment to enter a comment text for the element in question You can use comments to describe the scripts You use XML comments lt gt to make internal comments regarding the scripts Restrictions There are no restrictions Format lt comment gt text lt comment gt Attributes There are no attributes openFT Script 45 context openFT Script statements alphabetical list 4 4 context You use context to define a context and possibly faulthandlers for an activity Context objects are objects which can be used in the same or in lower level activities when referenced using the attribute ref or listRef They may be oftype autoData
53. e to localTmp fromRemoteFile toLocalTmpFile File transfer from localTmp to remote fromLocalTmp File toRemoteFile 88 openFT Script openFT Script statements alphabetical list transferFile Restrictions 1 After de referencing fromRemoteFile and toRemoteFile must possess a partner specification 2 The elements fromLocalFile and toLocalFile must not possess any partner specification after de referencing 3 You cannot use transferFile to perform any file transfers from local to local e To perform file transfers from local to local you must use a corre l sponding script copy or specify one of the two files as remote and specify the local computer as the partner specify transferAdmission Format lt transferFile compress none byteRep zip writeMode replace new extend transparentMode true false dataEncryption _yes no onlyDataIntegrity gt comment context fromRemoteFile toLocalFile fromLocalFile toRemoteFile fromRemoteFile toLocalTmpFile fromLocalTmpFile toRemoteFile remoteSuccessScript remoteFailureScript lt transferFile gt openFT Script 89 transferFile openFT Script statements alphabetical list Attributes Name Value Meaning compress none byteRep zip The default value is none The file is not compressed If byteRep is specified then identical sequences of characters are compressed
54. e created ft_tmpFileDelete ft_resource Timestamp could not be deleted ft_tmpFileNotFound ft_resource Expected TmpFile was not found ft_traceCantCreate ft_resource Trace file could not be generated No trace deactivate trace ft_traceFileCreateError ft_resource Trace file could not be generated Deactivate trace ft_traceFileNotFound ft_resource Trace file could not be found ft_traceSerialization ft_error Trace file corrupt ft_traceSyncFailed ft_resource Trace data could not be written to disk Trace may not be complete ft_traceWrapperCantCreate ft_resource Trace file wrapper could not be generated ft_traceWrapperCreateError ft_resource Trace file wrapper could not be generated ft_traceWrapperNotFound ft_resource Trace file wrapper could not be found ft_transferFilelllegalSyntax ft_error remote remote or local local not permitted Schema defective ft_transferMandatoryParam ft_error Parameter error on ft_transfer ft_transparentModelllegal ft_error Incorrect specification in trans parent mode Defective schema ft_transparentModeOutOfRange ft_error Incorrect specification in trans parent mode ft API version correct ft_unexpectedLogEntry ft_error Log file invalid Expected entry not found openFT Script 135 Error messages Internal code Error code Descripti
55. e interpreter controls automatic restarts job Sequence of commands statements and data local system The FT system at which the user is working openFT partners Partner systems which communicate via openFT protocols openFT request Request to an FT system to transfer a file from a send system to a receive system and possible start follow up processing requests openFT script Name of the product and the langage in which openFT requests are formu lated 140 openFT Script Glossary openFT script request The processing of an openFT script owner of an FT request Login name in the local system Or remote system under which this FT request is executed The owner is always the ID under which the request is submitted not the ID under which it is executed partner system here FT system that executes FT request together with the local system password Sequence of characters that a user must enter in order to access a user ID file job variable network node or application The user ID password serves for user authentication It is used for access control The file password is used to check access rights when users access a file or job variable It is used for file protection purposes remote system see Partner system request here openFT request request queue File which contains the asynchronous requests and their processing states The request queue also contains the parameters set with the ftmodo c
56. e name 34 statements see openFT Script state ments structure of an openFT script 29 T target group 7 TCP IP 142 toLocalFile 107 toLocalTmpFile 108 toRemoteFile 110 transferAdmission 82 transferFile 88 AutoDataSpec 94 fromLocalFile 97 fromLocalTmpFile 99 fromRemoteFile 102 remoteFailureScript 104 remoteSuccessScript 106 toLocalFile 107 toLocalTmpFile 108 toRemoteFile 110 U userAdmission 82 144 openFT Script Fujitsu Siemens Computers GmbH Com me nts User Documentation 81730 M nchen Suggestions Germany Corrections Fax 0 700 372 00000 email manuals fujitsu siemens com http manuals fujitsu siemens com Submitted by Comments on openFT V10 0 for UNIX Systems and Windows Systems openF T Script Interface openFT Script ie FUJITSU Information on this document On April 1 2009 Fujitsu became the sole owner of Fujitsu Siemens Compu ters This new subsidiary of Fujitsu has been renamed Fujitsu Technology So lutions This document from the document archive refers to a product version which was released a considerable time ago or which is no longer marketed Please note that all company references and copyrights in this document have been legally transferred to Fujitsu Technology Solutions Contact and support addresses will now be offered by Fujitsu Technology So lutions and have the format ts fujitsu com The Internet pages of Fujitsu Technology Solutions are availab
57. e permitted IPv4 and IPv6 addresses start with IP See openFT user manual systemType any unix The default value is any windows zos Specifies the partner s system type bs2000 The system type is not determined automatically If no system type is specified then the general data e g name is used instead of the system specific data e g unixname 80 openFT Script openFT Script statements alphabetical list 4 19 1 processingAdmission You use processingAdmission to assign the processing admission for scripts il processingAdmission is not currently supported The attribute can be specified but has no effect Format lt processingAdmission userld user userAccount account passwort gt comment lt processingAdmission gt userPassword Attributes Name Value Meaning userId string User ID Does not have to be specified if the transferAdmission is used section transferAd mission on page 82 userAccount string Account information userPassword string Password for the user ID openFT Script partner partner openFT Script statements alphabetical list 4 19 2 transferAdmission You use transferAdmission to assign the admission for transfer files Format lt transferAdmission gt comment ftacAdmission userAdmission lt transferAdmission gt ftacAdmission You use ftacAdmission to assign the admission in
58. eScript transferFile deleteFile createDirectory deleteDirectory and listDirectory For a description see chapter openFT Script statements alphabetical list on page 43 Parent and child activities You can nest activities XML syntax As a result activities are subdivided into parent and child activities lt ftscript version 1 gt lt parallel gt lt transferFile gt lt listDirectory gt lt foreach gt lt deleteFile gt lt foreach gt lt parallel gt lt ftscript gt ftscript is the root element The root element has a child element parallel parallel has ftscript as parent element or higher level element parallel also has three child elements transferFile listDirectory and foreach The foreach activity also has a deleteFile activity as a child element 30 openFT Script Structure of an openFT script Components of an openFT script 3 1 2 Context An activity s context describes the context objects and error handling mecha nisms faulthandler Using the context object language tool you can specify an element for example a partner once in the openFT script and then re use it whenever necessary To do this you reference the context object atthe point at which it is to be used Using appropriate referencing it is also possible to combine the properties of multiple context objects Each context object has an ID which must be unique within the context This I
59. ent context openFT Script 31 Components of an openFT script Structure of an openFT script 5 Circular references are nor permitted obj1l ID A ref B obj2 ID B ref A is not possible in one and the same context The error ft_reference is output 6 Allthe attributes and elements of the referenced element which are not present in the referenced element are taken over Before being taken over the referenced element is de referenced on the basis of these rules Examples 1 Valid referencing lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt partner id remote name WindowsP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt file id pack name packl bin gt lt partner ref remote gt lt directory name frg_eis_01 gt lt file gt lt context gt lt transferFile gt lt fromRemoteFile ref pack gt lt toLocalFile name packl bin gt lt directory name frg_eis_01 gt lt toLocalFile gt lt transferFile gt lt transferFile gt lt context gt lt partner id remote name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt context gt lt fromRemoteFile ref pack gt lt partner ref remote gt lt fromRemoteFile gt lt toLocalFile name pack2 bin gt lt directory name fr
60. entUnknown ft_error The schema and Ftscript do not match There is no such name attribute ft_nasty_error ft_error An unhandled error has occurred ft_nolnterpreter ft_resource Server process not present at the correct time ft_noKeyInLogfile ft_error Log file entry invalid key not present Restart no longer possible ft_noPartner ft_paramError No partner was specified for the remote file ft_noRef ft_reference Reference cannot be resolved ft_noRefForContextObject ft_reference Reference cannot be resolved ft_noReflInFtscript ft_reference Reference cannot be resolved 132 openFT Script Error messages Internal code Error code Description ft_noScript ft_resource No script was specified ft_noSession ft_error openFT session could not be generated ft_notExist ft_notExist File or directory does not exist ft_noTransferAdmission ft_paramError The transfer admission is missing in the partner specifi cation ft_notRepeatable ft_error Ftscript request cannot be repeated ft_noUserFaultCode ft_paramError Error code may not start with ft ft_noUserScript ft_paramError No script was specified for executeScript ft_noUtf8Support ft_resource UTF 8 is not supported ft_openParamError ft_error Error generating the openFT session ft_openParamError2 ft_error ft_open
61. error Request cannot be initialized ft_cantWriteLogData ft_resource Log data could not be written ft_circleRef ft_reference Circular reference not permitted ft_closeOrderQueue ft_resource Order queue could not be closed correctly ft_code1038 ft_ignore Request lt request ID gt is being completed and can no longer be deleted ft_code1050 ft_resource Ftscript process could not be started ft_code1052 ft_resource Maximum number of Ftscript users exceeded ft_code1053 ft_notExist Ftscript section not found ft_code1054 ft_notExist Ftscript ID not found ft_code1055 ft_notExist Ftscript file not found openFT Script 111 Error messages Internal code Error code Description ft_code1056 ft_cantDelete Ftscript request has not been completed ft_code108 ft_connection Request lt request ID gt Remote system not accessible ft_code20 ft_notExist lt local file gt not found ft_code2014 ft_paramError No modification of file attributes demanded ft_code2015 ft_admin openFT is not authorized to process requests for this user ft_code2016 ft_notEmpty The directory lt local file gt is not empty ft_code2017 ft_localFile The file attributes do not corre Structure spond to the request param eters ft_code2018 ft_error Attributes could not be modified ft_code2019 ft_ca
62. ffect one another since their execution is practically simultaneous local and remote i See also section executeScript on page 56 Additional notes The script is also executed if a running data transfer is aborted with a fault inter nally ft_cancel is issued if a fault occurs see section fault on page 59 and the openFT user manual If a fault occurs then remoteFailureScript is only executed for the running transfers Restrictions 1 The remoteFailureScript activity uses the partner from the associated transferFile activity see section transferFile on page 88 2 The specification of repeatable in referenced script objects is ignored Format lt remoteFailureScript ref ID gt comment script bs2000Script unixScript windowsScript zosScript lt remoteFailureScript gt 104 openFT Script openFT Script statements alphabetical list transferFile Attributes Name Value Meaning ref string Reference to a script context object Any partner described there is not evaluated The partner in the associated transferFile activity is used Example See example on page 91 openFT Script 105 transferFile openFT Script statements alphabetical list remoteSuccessScript You use remoteSuccessScript to execute a script on the remote system if data transfer succeeds see section script on page 84 The functionality rs of
63. files and directories recursively using the search pattern The sequence in which the directories are listed corresponds to the sequence required for their generation i e the opposite sequence is required in order to delete them 70 openFT Script openFT Script statements alphabetical list foreach In the first foreach sequence all the files are deleted in parallel Non existent files are ignored An error during file deletion results in cancellation of the script In the second foreach sequence the empty directories are deleted backwards because the directories to be deleted with deleteDirectory must be empty see section deleteDirectory on page 49 Non existent directories are ignored Other errors result in the cancellation of the script When the script has run the directory frg_eis_10 on the computer UnixP_I is empty 3 Copying a file tree lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt partner id remote name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt context gt lt listDirectory name listObject Flist gt lt partner ref remote gt lt baseDir name frg_eis_11 gt lt listDirectory gt lt foreach listRef Flist selectType directory contextObject creDir execute sequential gt lt createDirectory ref creDir gt lt baseDir name frg_ei
64. ft_err_INT_RMFILE_errno ft_error Error on rmfile system call errno is the value of the errno variable This value is set by the defective system call ft_err_INT_SIGNAL_signal ft_error The command was interrupted by signal signal indicates the signal which caused the inter ruption ft_err_INT_STAT_errno ft_error Error on stat system call errno is the value of the errno variable This value is set by the defective system call ft_err_INT_SYSTEM_errno ft_error Error on system system call errno is the value of the errno variable This value is set by the defective system call ft_err_INT_WRITE_errno ft_error Error on write system call errno is the value of the errno variable This value is set by the defective system call If it was not possible to write all the bytes errno has the value 1 ft_err_LOCERR_EXIST ft_exist The local file already exists ft_err_LOCERR_FTAC ft_access The request was rejected by the local FTAC ft_err_LOCERR_FTC_exit status ft_panic exit status indicates the message number of the ftc command see message 94 and message 95 in the openFT message table ft_err_LOCERR_INCONS ft_localFile Structure The local file is inconsistent ft_err_LOCERR_MEM ft_resource The local file is assigned no space 126 openFT Script Error messages Internal code Error code Descriptio
65. ftshws to display the reason for termination openFT Script 33 Specifying file and directory names Structure of an openFT script 3 2 Specifying file and directory names Many openFT Script statements use file or directory names These are specified in the attributes name bs2000Name unixName windowsName and zosName If no special characteristics are defined then the following definition applies If a partner is specified then its operating system must also be explicitly specified Otherwise openFT Script itself determines the operating system of the local computer 3 2 1 File name attributes If a file name starts with the pipe character then this has the special meaning of a generating fromLocalFile fromRemoteFile or receiving toLocalFile toRemoteFile program call see the openFT user manual Name Value Meaning name string File name with specification of the subpath see openFT user manual name is used if no operating system is known or no operating system specific name has been specified The default value is an empty string If name is not specified and the profile partner ftac is linked to a fixed file name then this applies Only the character may be used as a separator e g C x y bs2000Name string File name for BS2000 The name is used if it has been specified and the associated partner is a BS2000 system An empty string must be explicitly specified e g C system hu
66. g_eis_01 gt lt toLocalFile gt lt transferFile gt lt ftscript gt 32 openFT Script Structure of an openFT script Components of an openFT script The file object with the ID pack references a partner object with ID remote The partner WindowsP_1 is used in the first transferFile activity The same file object pack is referenced in the second transferFile activity However the partner has been overwritten Consequently UnixP_1 which is defined in the context of the second transferFile is addressed This definition hides the Windows partner with Id remote If the partner was not overwritten then the Windows partner would be used since this is found in the pack object definition in the ftscript context The partner on the Unix system from the context of the second transferFile would be ignored since it is no longer accessible from the definition d pack 2 Invalid referencing lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt transferFile gt lt fromRemoteFile ref pack gt lt toLocalFile name packl bin gt lt directory name frg_eis_02 gt lt toLocalFile gt lt transferFile gt lt ftscript gt The pack reference is not defined The script outputs an error ft_noRef This is not processed no faulthandler defined The script is terminated before execution of the transferFile activity No restart is possible You can use
67. gh sequentially In this case the parallel activity has no effect e Performance 1 If slow connections are used a parallel activity may sometimes take longer than a sequence activity The number of parallel connections is limited depending on the setting in openFT The requests are buffered in the request queue The work involved in administering the request queue may be greater than the corresponding sequential processing Format lt parallel gt comment context Activity lt parallel gt 78 openFT Script openFT Script statements alphabetical list parallel Attributes There are no attributes Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt parallel gt lt transferFile gt lt fromLocalFile name W openFT ftscript Test data large text txt data char gt lt toRemoteFile name text txt gt lt partner name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt directory name frg_eis_13 gt lt toRemoteFile gt lt transferFile gt lt transferFile gt lt fromLocalFile name W openFT ftscript Test data large bin mp3 data bin gt lt toRemoteFile name bin mp3 gt lt partner name WindowsP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt directory
68. go windowsName string File name for Windows The name is used if it has been specified and the associated partner or the associated local system is a Windows system An empty string must be explicitly specified You can use the notation or the Windows specific notation 34 openFT Script Structure of an openFT script Specifying file and directory names Name Value Meaning unixName string File name for Unix based system The name is used if it has been specified and the associated partner or the associated local system is a Unix system An empty string must be explicitly specified You may only use the notation zosName string File name for ZOS The name is used if it has been specified and the associated partner is a ZOS system An empty string must be explicitly specified 3 2 2 Directory name attributes Name Value Meaning name string Directory name name is used if no operating system is known or no operating system specific name has been specified The default value is an empty string If name is not specified and the profile partner ftac is linked to a fixed directory name then this applies Only the character may be used as a separator bs2000Name string BS2000 specific addressing see openFT User Guide windowsName string Windows specific path The name is used if it has been spe
69. gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt partner name WindowsP_1 systemType windows gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt list gt lt context gt lt foreach listRef HostList selectType partner contextObject partner execute parallel gt lt foreach listRef FileList selectType file contextObject file execute parallel gt lt transferFile gt lt fromLocalFile ref file gt lt directory name W openFT ftscript Test data large gt lt autoDataSpec binPattern mp3 charPattern txt gt lt fromLocalFile gt lt toRemoteFile ref file gt lt partner ref partner gt lt directory name frg_eis_09 gt lt toRemoteFile gt lt transferFile gt lt foreach gt lt foreach gt lt ftscript gt The files bin mp3 and text txt are copied to two computers In the example the lists of files and computers are defined as context objects The file list can also be defined for example by means of a listDi rectory see section listDirectory on page 75 openFT Script 69 foreach openFT Script statements alphabetical list A double foreach sequence is used The external sequence works through all the computers and the inner sequence works through all the files The connection to the computers
70. ile is limited and depends on the openFT version The length is the number of characters plus 1 character if directory does not end with a 2 toRemoteFile must contain a partner specification after de referencing Format lt toRemoteFile ref ID ccsname string filenames gt comment partner directory lt toRemoteFile gt Attributes Name Value Meaning ref string Reference to another file object ccsname string Specifies the Coded max 8 characters Character Set see openFT user manual filenames See section File name attributes on page 34 Example See example on page 91 110 openFT Script 5 Error messages Internal code Error code Description ft_activeDirNotExists ft_resource Script request directory does not exist Restart not possible ft_alarmException ft_error Error during alarm handling Is ignored ft_alarmFailed ft_error Slow poll An unhandled error has occurred ft_callFtRuntime ft_error Runtime error on FT call ft_callSecurity ft_access Access error during file deletion ft_cancelCmdError ft_error Abort terminated with unknown error ft_cancelError ft_error Error during abort ft_cancelUnexpectedState ft_error Request terminated but status incorrect Abort expected ft_cantCreateJobListener ft_resource Interruption during communi cation with openFT ft_cantlnitializeJob ft_
71. ing ft_code705 ft_syntax Parameter lt 1 gt specified more than once ft_code706 ft_syntax Parameter lt 1 gt can only be specified together with lt 2 gt ft_code707 ft_syntax Invalid parameter lt 1 gt ft_code708 ft_syntax Range of values for parameter lt 1 gt not respected ft_code709 ft_syntax Too many positional parameters openFT Script 121 Error messages Internal code Error code Description ft_code710 ft_syntax Incorrect parameter value lt 1 gt ft_code750 ft_syntax Command not known ft_code751 ft_syntax Command name ambiguous with regard to lt 1 gt ft_code752 ft_syntax Closing bracket missing for operand lt 1 gt ft_code753 ft_syntax Incorrect separator lt 1 gt after operand lt 2 gt ft_code755 ft_syntax List value of operand lt 1 gt not compatible with data type lt 2 gt ft_code756 ft_syntax Introductory operand value required for lt 1 gt ft_code757 ft_syntax Value of operand lt 1 gt not compatible with data type lt 2 gt ft_code758 ft_syntax Keyword value of operand lt 1 gt ambiguous with regard to lt 2 gt ft_code759 ft_syntax Too many closing brackets ft_code760 ft_syntax Required operand lt 1 gt not present ft_code762 ft_syntax Operand name lt 1 gt ambiguous with regard to lt 2 gt ft_code763 ft_syntax Operand lt 1 gt
72. ipt command By default all the user s openFT Script requests are displayed Return code 0 OK 4 Syntax error 51 Error while outputting an Ftscript user 54 Ftscript ID not found 250 Internal error Output in table format The processing level of the openFT Script requests is displayed in four columns User User ID under which the request was started Ftscriptid Unique identification of the request The identification is returned by the ftscript command Sta Indicates the processing status where W waiting The request has not yet been started R running The request has been started but has not yet been terminated T terminated The request has been terminated without errors F failure The request has been terminated with errors interrupted The request was interrupted e g due to a system crash C cancelled The request was cancelled with an ftcans command X cancelling The request is currently being cancelled due to an ftcans command FtscriptFileName Path name of the script file 26 openFT Script openFT Script Commands ftshws If the status F and the v option are specified then the cause of the error is output in clear text in another column Output in CSV format User Ftscriptid State CreationTime FtscriptFileName Error The output contains the following information User User ID under which the request was started Ftscriptid Unique identification of the request The
73. l you can specify the wildcard symbol at the end of the name 76 openFT Script openFT Script statements alphabetical list listDirectory Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt list id RemoteHostList gt lt partner name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt partner name WindowsP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt list gt lt context gt lt listDirectory listObject FileList gt lt baseDir name W openFT ftscript Test mul ti gt lt listDirectory gt lt foreach listRef RemoteHostList selectType partner contextObject RemoteHost execute parallel gt lt foreach listRef FileList selectType file contextObject File execute parallel gt lt transferFile gt lt fromLocalFile ref File gt lt directory name W openFT ftscript Test multi gt lt fromLocalFile gt lt toRemoteFile ref File gt lt partner ref RemoteHost gt lt directory name frg_eis_12 local bin gt lt toRemoteFile gt lt transferFile gt lt foreach gt lt foreach gt lt ftscript gt In the example all the files from the local directory W openFT ftscript Test multi are written to
74. l list faulthandler Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt partner id RemotePartner name D018S011 gt lt transferAdmission gt lt ftacAdmission ftacAdmission p11 gt lt transferAdmission gt lt partner gt lt context gt lt transferFile gt lt context gt lt file id source name source bin gt lt file id target name target bin gt lt partner ref RemotePartner gt lt file gt lt faulthandler gt lt default gt lt transferFile gt lt context gt lt partner id RemotePartner name D018S022 gt lt transferAdmission gt lt ftacAdmission ftacAdmission p11 gt lt transferAdmission gt lt partner gt lt context gt lt fromLocalFile ref source gt lt toRemoteFile ref target gt lt transferFile gt lt default gt lt faulthandler gt lt context gt lt fromLocalFile ref source gt lt toRemoteFile ref target gt lt transferFile gt lt ftscript gt In this example the local file source bin is to be copied to D018S01 I taget bin If an implicit error occurs in transferFile then the file is copied to D018S022 target bin This overlays the context object with the Id Remote Partner If another error occurs during this activity then the script is cancelled openFT Script 63 faulthandler openFT Script statements alphabetical list case The activity described in case is
75. l system failed openFT Script 115 Error messages Internal code Error code Description ft_code2119 ft_connection Request lt request ID gt Local system unknown in remote system ft_code2120 ft_connection Remote system lt partner gt unknown ft_code2121 ft_connection Request lt request ID gt Authentication of partner failed ft_code2122 ft_connection Request lt request ID gt Connection rejected or discon nected Cause lt 2 gt ft_code2123 ft_connection Request lt request ID gt Error lt 2 gt on OSS call ft_code2124 ft_connection Request lt request ID gt No free transport connection ft_code2125 ft_connection Request lt request ID gt Transport connection lost ft_code2126 ft_connection Request lt request ID gt Transport system error Error code lt 2 gt ft_code2127 ft_connection Request lt request ID gt No data traffic within lt 2 gt seconds ft_code2140 ft_admin Request lt request ID gt Remote system openFT is not authorized to process requests for this user ft_code2141 ft_notEmpty Request lt request ID gt Remote system The directory lt remote file gt is not empty ft_code2142 ft_remoteFile Request lt request ID gt Structure Remote system The file attributes do not correspond to the request parameters ft_code2143 ft_a
76. le at http ts fujitsu com and the user documentation at hrrp manuals ts fujitsu com Copyright Fujitsu Technology Solutions 2009 Hinweise zum vorliegenden Dokument Zum 1 April 2009 ist Fujitsu Siemens Computers in den alleinigen Besitz von Fujitsu bergegangen Diese neue Tochtergesellschaft von Fujitsu tr gt seit dem den Namen Fujitsu Technology Solutions Das vorliegende Dokument aus dem Dokumentenarchiv bezieht sich auf eine bereits vor l ngerer Zeit freigegebene oder nicht mehr im Vertrieb befindliche Produktversion Bitte beachten Sie dass alle Firmenbez ge und Copyrights im vorliegenden Dokument rechtlich auf Fujitsu Technology Solutions bergegangen sind Kontakt und Supportadressen werden nun von Fujitsu Technology Solutions angeboten und haben die Form ts fujitsu com Die Internetseiten von Fujitsu Technology Solutions finden Sie unter http de ts fujitsu com und unter http manuals ts fujitsu com finden Sie die Benutzerdokumentation Copyright Fujitsu Technology Solutions 2009
77. longer possible to write logging records Process termi nated ft_code855 ft_error No further storage space for internal files ft_code856 ft_error Error on OPS output ft_code857 ft_error Error in key file lt 1 gt ft_code858 ft_error Internal error Not possible to set reset file locks ft_code859 ft_error Function not supported due to teleservice restrictions ft_code860 ft_error Teleservice restriction for FTAC due to FT ft_code861 ft_error Teleservice restriction for lt 1 gt openFT Script 123 Error messages Internal code Error code Description ft_code862 ft_error Protocol stack lt 1 gt not installed ft_code999 ft_error openFT panic lt 1 gt Abnormal termination ft_compressModelllegal ft_error Defective compress mode Defective schema ft_compressModeOutOf ft_error Incorrect specification in Range compress mode ftAPI version ft_contextCantCreate ft_error Context file could not be created ft_contextCantCreate2 ft_error Context file could not be generated ft_createDirectoryFailed ft_resource Directory could not be created or not a directory ft_createDirectorySecurity ft_access Directory could not be created ft_createNoFilename ft_paramError No name specified on gener ation of a directory ft_createParamError ft_error Parameter error on creation of a directory ft_deleteFailed ft_error Local file local director
78. mote system Not possible to extend the file during trans parent transfer ft_code2167 ft_auth Request lt request ID gt Remote system Access to lt remote file gt prohibited 118 openFT Script Error messages Internal code Error code Description ft_code2168 ft_paramTooLong Request lt request ID gt Remote system Follow up processing too long ft_code2169 ft_auth Request lt request ID gt Remote system Transfer admission invalid ft_code2170 ft_notSupported Request lt request ID gt Remote system Function not supported ft_code2195 ft_admin Request lt request ID gt Remote system openFT is no longer authorized to process requests for this user ft_code2196 ft_abort Request lt request ID gt has been deleted in the remote system ft_code2197 ft_cantCreate Request lt request ID gt Remote system File directory lt remote file gt could not be created ft_code2198 ft_notExist Request lt request ID gt Remote system Higher level directory no longer found ft_code2199 ft_access Request lt request ID gt Remote system Error on lt remote file gt input output ft_code2200 ft_access Request lt request ID gt Remote system File now locked against concurrent access ft_code2201 ft_access Request lt request ID gt Remote system File directory lt remote file gt
79. n ft_err_LOCERR_NOACCESS ft_access It is not possible to access the local file ft_err_LOCERR_NOCREAT ft_cantCreate The local file cannot be created ft_err_LOCERR_NOTEXIST ft_notExist The local file cannot be found ft_err_PAR_DIRAC_errno ft_error errno is the value of the errno variable This value is set by the stat call The errno variable has the value 0 if no write authori zation has been assigned for the directory ft_err_PAR_FTMSG_code Error code in accordance with ft_code lt code gt lt Message in accordance with ft_code lt code gt gt ft_err_PAR_INVSESS ft_panic The session number is invalid ft_err_PAR_LEN ft_notSupported The name of the working directory workdir is too long ft_err_PAR_LEN_ACCOUNT ft_paramTooLong Parameter too long ftamext gt account ft_err_PAR_LEN_CRPWD ft_paramTooLong Parameter too long ftamext gt crpasswd ft_err_PAR_LEN_FPWD ft_paramTooLong Parameter too long mgmtpasswd or filepasswd ft_err_PAR_LEN_LEGALQ ft_paramTooLong Parameter too long ftamext gt legalq ft_err_PAR_LEN_LOCFN ft_paramTooLong Parameter too long locfn ft_err_PAR_LEN_LOCPR ft_paramTooLong Parameter too long Total of the lengths of locsuccproc and locfailproc ft_err_PAR_LEN_REMACC ft_paramTooLong Parameter too long remaccount ft_err_PAR_LEN_REMADM ft_paramTooL
80. nFT Script openFT Script Commands ftcans Return code 0 OK 4 Syntax error 51 Error while outputting an Ftscript user 54 Ftscript ID not found 250 Internal error openFT Script 13 ftdels openFT Script Commands 2 3 ftdels Deleting an openFT Script request The specified completed openFT Script request is deleted from the user s directory or all completed openFT Script requests are deleted from the user s directory No more information is subsequently available for deleted requests A ftshws or ftshwact command with this ftscriptid is rejected since it no longer exists Before an openFT Script request can be deleted it must have been completed i e ftshws must indicate the status T F or C Since ftcans is not a synchronous command it may be necessary to wait for the status C cancelled to arise before a subsequent ftdels If no ftdels is issued for an openFT Script request then this is automatically deleted when the retention period expires Format ftdels h u lt User ID 1 32 gt lt ftscriptid gt a Description h Outputs the command syntax on screen Any specifications after h are ignored u User ID User ID under which the search for the openFT Script request that is to be deleted is performed Only administrators may input a user ID The default value is the calling party s user ID ftscriptid Identification of the openFT Script request This is output if the openFT Script
81. name frg_eis_13 gt lt toRemoteFile gt lt transferFile gt lt parallel gt lt ftscript gt The files text txt and bin mp3 are delivered simultaneously In fact the file transfer requests are sent to openFT simultaneously If enough capacity is free then these requests are executed simultaneously openFT Script 79 partner openFT Script statements alphabetical list 4 19 partner You use partner to specify the partner for which the activity applies or at which the file or directory is located If a partner is specified then this is always considered to be the remote system even if your own computer and own user ID are being addressed If you do not specify a partner the activity refers to the current user ID on the local computer After de referencing the partner must possess a transfer admission see section transferAdmission on page 82 Format lt partner id ID ref ref name name sytemType any unix windows zos bs2000 gt comment transferAdmission processingAdmission lt partner gt Attributes Name Value Meaning id string A unique ID in the current context The context object is referenced under this ID ref string References a context object of type partner After de referencing the partner must possess a transfer admission see section transferAdmission on page 82 name string Name of the partner system TNS and DNS names ar
82. ntCreate lt local file gt could not be created ft_code2021 ft_notExist CCS name not known ft_code2022 ft_notExist Higher level directory not found ft_code2023 ft_exist lt local file gt already exists ft_code2024 ft_notSupported Transfer of file generation groups not supported ft_code2025 ft_access Error accessing lt local file gt ft_code2026 ft_paramError Resulting file name lt local file gt too long ft_code2027 ft_paramError No file or directory name specified ft_code2028 ft_auth Invalid management password ft_code2029 ft_access lt local file gt not available ft_code2030 ft_notExist Home directory not found ft_code2031 ft_access Not possible to rename ft_code2032 ft_resource Not enough storage space for lt local file gt ft_code2033 ft_notExist File owner unknown ft_code2034 ft_auth Invalid file password 112 openFT Script Error messages Internal code Error code Description ft_code2036 ft_cantDelete The file s retention period has not yet expired ft_code2037 ft_auth lt local file gt is write protected ft_code2038 ft_localFile File structure not supported Structure ft_code2039 ft_syntax Syntax error in resulting file name lt local file gt ft_code2040 ft_notSupported Transparent file transfer not supported ft_code2042 ft_notSup
83. number of different manuals Alongside the present manual there are also other openFT manuals for Unix systems and Windows systems This description is distributed across the manuals as follows openFT for UNIX systems Installation and Administration The system administrator manual is intended for FT and FTAC adminis trators It describes the installation of openFT and its optional components the operation control and monitoring of the FT system and the FTAC environment the administration commands for FT and FTAC administrators important CMX commands openFT for UNIX systems Enterprise File Transfer in the Open World The user manual is intended for the openFT user and describes the basic functions of the openFT product family the conventions for file transfers to computers running different operating systems details on implementing FTAM the openFT user commands the openFT Script commands the BSFT interface openFT for Windows systems Enterprise File Transfer in the Open World The user manual is intended for the openFT user and describes the basic functions of the openFT product family the conventions for file transfers to computers running different operating systems details on implementing FTAM openFT for UNIX systems and Windows systems Program Interface This manual is intended for C programmers and describes the C program interface on UNIX
84. of an as yet unstarted request unknown lt file name gt if it is not known if the file is local when a file object is referenced createDir lt partner gt Partner with directory name if both lt directory name gt are known unknown if the partner is not yet known lt directory name gt unknown unknown if both are not yet known 22 openFT Script openFT Script Commands ftshwact Activity ActivityObject Meaning createDir lt partner gt if contexld foreach contextObject cont ref lt contextID gt and the resolution is not yet known because it has not yet been passed through lt directory name gt if the directory is local In this case as for sendFile the name for already started requests is determined from the FT request and for requests which have not yet been started from the specifica tions in the XML file A local file name would be output as an absolute file name in the case of a started request and as a relative path name in the case of an as yet unstarted request deleteDir as createDir listDir as createDir execScript 32 characters Contains the first 32 characters of the command that is to be executed For security reasons the user should make sure that the first 32 characters do not contain any confidential parameters fault lt faultcode gt Error code specified by the user lt special faultcode gt lt general faultcode gt f
85. ommand restart Automatic continuation of an FT request after an interruption system remote see partner system system local see local system openFT Script 141 Glossary TCP IP Transmission Control Protocol Internet Protocol Widespread protocol for file transfer corresponds roughly to Layers 3 and 4 of the OSI Reference Model i e Network and Transport Layer was origi nally developed for the ARPANET computer network of the US Ministry of Defense now a de facto standard Trace Diagnostic function which logs the course of FT operation Transmission Control Protocol Internet Protocol see TCP IP Transport Name Service TNS Service used to administer properties specific to transport systems Entries for partner systems receive the information on the particular transport system employed 142 openFT Script Index A activities 29 30 external 30 internal 30 parent and child 30 attributes 34 directory names 35 filename 34 AutoDataSpec 94 B baseDir 44 Cc case 64 comment 45 components of an openFT script 29 context 29 31 46 createDirectory 47 D default 64 deleteDirectory 49 deleteFile 51 de referencing 31 example 32 rules 31 diagnostic information 41 directory 53 directory name attributes 35 E empty 54 end of an openFT script 40 error codes 36 111 normal 36 37 permitted for faulthandler 137 severe 36 38 error handling 29 36 error inan openFT script 40
86. on ft_unknownError ft_error Unknown error code ft_unlockOrderQueue ft_resource Order queue could not be released ft_unresolvedTmpFile ft_reference Local TmpFile was not found Reference cannot be resolved ft_unwrap ft_error Unwrapping failed ft_userFault ft_userFault Error activity called in the Ftscript ft_userStorageCantCreate ft_resource Basic data cannot be initialized EXIT NO ERROR LOG ft_validatingFeaturesNot ft_error The parser does not support Supported necessary features for validation Should NEVER occur ft_validationError ft_error Validation parse or IO error ft_workDirectoryPiNotFound ft_error PI for call directory not found in script ft_workDirUnusable ft_resource Working directory cannot be generated ft_writeModelllegal ft_error Incorrect specification in write mode Defective schema ft_writeModeOutOfRange ft_error Incorrect specification in write mode Defective schema ft_writeOrderQueue ft_resource Write to order queue failed ft_wrongJavaVersion ft_resource The current Java version must be lower than 1 4 2_07 136 openFT Script Error messages The following error codes are permitted for the faulthandler see section faulthandler on page 62 Error codes Description ft_abort Command aborted ft_access Access error ft_admin Administ
87. ong Parameter too long remadmis ft_err_PAR_LEN_REMFN ft_paramTooLong Parameter too long fn or remfn ft_err_PAR_LEN_REMPR ft_paramTooLong Parameter too long Total of the lengths of remsuccproc and remfailproc ft_err_PAR_LEN_REMPWD ft_paramTooLong Parameter too long rempasswd ft_err_PAR_LEN_REMSYS ft_paramTooLong Parameter too long remsys openFT Script 127 Error messages Internal code Error code Description ft_err_PAR_MAND ft_panic The parameter list par was not specified The name of the working directory workdir was not specified The output area stat was not specified The parameter list par was not specified The output area info was not specified only in the case of ft_show ft_err_PAR_MAND_LOCFN ft_paramError locfn was not specified ft_err_PAR_MAND_REMSYS ft_error The remote system was not specified ft_err_PAR_NODIR ft_panic The specified name workdir does not designate a directory ft_err_PAR_NOTERM ft_panic The request is not yet active ft_err_PAR_OPEN ft_panic In a program the same directory workdir has already been assigned to a session ft_err_PAR_REMOTE_ ft_access No authorization to delete in the NOACCESS remote system No authorization to read attributes in the remote system ft_err_PAR_REMOTE_ ft_notEmpty The directory in the remote
88. openFT V10 0 for UNIX Systems and Windows Systems openFT Script Interface Edition December 2006 Comments Suggestions Corrections The User Documentation Department would like to know your opinion of this manual Your feedback helps us optimize our documentation to suit your individual needs Fax forms for sending us your comments are included in the back of the manual There you will also find the addresses of the relevant User Documentation Department Certified documentation according to DIN EN ISO 9001 2000 To ensure a consistently high quality standard and user friendliness this documentation was created to meet the regulations of a quality management system which complies with the requirements of the standard DIN EN ISO 9001 2000 cognitas Gesellschaft f r Technik Dokumentation mbH www cognitas de Copyright and Trademarks Copyright Fujitsu Siemens Computers GmbH 2006 All rights reserved Delivery subject to availability right of technical modifications reserved All hardware and software names used are trademarks of their respective manufacturers This manual is printed on paper treated with chlorine free bleach Contents 1 1 1 2 1 3 1 4 1 5 2 1 2 2 2 3 2 4 2 5 2 6 3 1 3 1 1 3 1 2 3 1 3 3 2 3 2 1 3 2 2 3 3 3 3 1 3 3 2 3 3 3 3 4 PERE ee re er 7 Target group 6 5 bo ay ee Gob PhS ae Bw RP ren 7 Concept of openFT manuals for UNIX and Windows systems 8 N
89. or an ftcans command D dead The activity no longer starts due to a previous error In the case of the ftscript activity first activity in an openFT Script request a distinction is made between the following statuses interrupted The request was interrupted e g due to a system crash C cancelled The request was cancelled with ftcans 20 openFT Script openFT Script Commands ftshwact X cancelling The request is currently being cancelled due to an ftcans command F failure Is only displayed for the ftscript activity if the error was not handled by a faulthandler In the case of activities with the status F and faulthandler activities the cause of the error is output in clear text in an additional line Activity Activity name The names are based on the openFT Script language but may be truncated in some cases e g faulthdir instead of faulthandler foreach is designated in accordance with the value of the execute attribute as foreach_P parallel or foreach_S sequential TransferFile is designated as sendFile or rcvFile receive File depending on the direction of transfer ActivityObject The content of this column depends on the activity in question see the table below Activity ActivityObject Meaning ftscript lt scriptPath gt Complete path name of the original file with the XML statements empty foreach_P lt contextObject gt context object which assumes the value of the
90. or deletion is not empty ft_notExist A file directory CSS file owner does not exist ft_remote The command script was terminated in the remote system with an error ft_remoteFileStructure Error in the remote file openFT Script 37 Error handling Structure of an openFT script 3 3 2 Severe Ftscript error codes The severe errors are primarily caused by internal problems e g insufficient storage space on the hard disk for administrative information or script errors e g unresolved references If a severe error occurs than a restart is only possible under certain conditions see section Restart on page 39 Severe errors cannot be intercepted by the faulthandler default In this case it is necessary to write an explicit faulthandler case see section case on page 64 Error codes Description ft_abort Termination by the user ft_error A general error has occurred ft_notSupported The functionality is not supported ft_panic A serious error has occurred ft_paramError A parameter error has occurred ft_paramTooLong A parameter lies outside the value range ft_recoveryFailed Error during restart see section Restart on page 39 It is not possible to intercept the error ft_reference A reference is invalid not present or circular ft_resource A resource error has occurred e g not enough storage space
91. otExists yesIno The default value is no If the directory does not exist then no message is output If yes is specified then ft_notExists is output ifthe directory does not exist On a restart see section Restart on page 39 ft_recoveryFaile is output This may also occur if the instance is switched dirnames See section Directory name attributes on page 35 openFT Script 49 deleteDirectory openFT Script statements alphabetical list Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt directory id myDir name myTmp gt lt context gt lt deleteDirectory ref myDir gt lt partner name UnixP_1 systemType unix gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt baseDir name frg_eis_04 gt lt deleteDirectory gt lt ftscript gt Deletes the directory myTmp for the FTAC transfer admission FTACADM on the computer UnixP_1 No error is output if the directory does not exist or has already been deleted frg_eis_04 is specified as baseDir The directory that is to be deleted is refer enced The entire directory path base deleteDirectory is frg_eis_04 myTmp and consists of 16 characters 50 openFT Script openFT Script statements alphabetical list deleteFile 4 7 deleteFile You use deleteFile to delete a file If yo
92. otational conventions 0028 2882 eae 9 README NGS 2 cc 55 e523 480 2 oRee Eee a Dees 9 Requirements for openFT Script 205 10 openFT Script Commands 0 02 085s 11 Overview of the openFT Script commands 11 ftcans Cancelling an openFT Script request 12 ftdels Deleting an openFT Script request 14 ftscript Starting an openFT Script request 16 ftshwact Displaying the activity associated with an openFT Script request 2 2 02022 e eee 18 Description of the output kk kk ke eh sea 20 Display openFT Script requests 222220000 25 Structure of an openFT script 222 29 Components of an openFT script 2222000 29 A UES gs ds Se ae Oe ee ae es 30 CODEX aan db a A Se er 31 Pefereneing a c s ea neek os dH Re ae ee eRe RRB 31 Specifying file and directory names 34 Filename attributes 0 000 ee eee 34 Directory name attributes 2 0000 ee 35 error handling 166864 RR eee eRe dw eR OS 36 Normal Ftscript error codes i s ssas asrpe daa pakad 37 Severe Ftscript error codes aooaa 38 Restan 245 eo bak ra ae er 39 Running an openFT script 22 nun 40 openFT Script Contents 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 4 10 4 11 4 12 4 13 4 14 4 15 4 16 4 17 4 18 4 19 4 19 1 4 19 2 4 20 4 21 4 22 openFT Script statements alphabetical list 43 Syntax of the openFT Script
93. oth files or neither of the files reach their destination If a remoteFailureScript is defined for the file transfer which is cancelled by means of ft_cancel then this may continue to run even when the faulthandler is already active This may lead to problems i openFT Script 61 faulthandler openFT Script statements alphabetical list 4 12 faulthandler The faulthandler is analyzed if an error occurred in the activity in which it is present or ifthe activity is switched to the error state due to a child activity see section Running an openFT script on page 40 The faulthandler is used if a case activity with the corresponding error code is defined in it or in the absence of any severe error a default activity is defined see section Severe Ftscript error codes on page 38 This case or default activity then replaces the activity in which the faulthandler is located takes over its context objects and is then executed If an error occurs during the execution of the case Or default activity then the original faulthandler is ignored and a suitable faulthandler in the activity s own context or that of its parent activities is used Restrictions There are no restrictions Format lt faulthandler gt comment case default case default lt faulthandler gt Attributes See section case on page 64 62 openFT Script openFT Script statements alphabetica
94. ource Request lt request ID gt Remote system Resource bottleneck ft_code2214 ft_auth Request lt request ID gt Remote system Access to lt remote file gt is no longer permitted ft_code2215 ft_error Request lt request ID gt FTAM error lt 2 gt 120 openFT Script Error messages Internal code Error code Description ft_code2216 ft_remoteFile Structure Request lt request ID gt Remote system File structure not supported ft_code2217 ft_cantDelete Request lt request ID gt Remote system The file s retention period has not yet expired ft_code2218 ft_notSupported Request lt request ID gt Remote system Not possible to extend the file during trans parent transfer ft_code2226 ft_error Inconsistent monitor file contents ft_code2227 ft_error Monitor file not used by openFT ft_code2228 ft_error Monitor file not present ft_code236 ft_admin Set instance lt 1 gt no longer found ft_code35 ft_access File locked against concurrent access ft_code41 ft_resource Request queue full ft_code700 ft_syntax The parameters lt 1 gt and lt 2 gt may not both be specified at once ft_code701 ft_syntax Input error ft_code702 ft_syntax Parameter value lt 1 gt too long ft_code703 ft_syntax Mandatory parameter missing ft_code704 ft_syntax Mandatory parameter lt 1 gt miss
95. ported Not possible to extend the file during transparent transfer ft_code2043 ft_auth Access to lt local file gt prohibited ft_code2044 ft_paramTooLong Follow up processing too long ft_code2045 ft_auth Authorization for follow up processing invalid ft_code2046 ft_auth Local transfer admission invalid ft_code2047 ft_auth Request rejected by local FTAC ft_code2048 ft_notSupported Function for protocol lt partner protocol type gt not supported ft_code2049 ft_notSupported Remote follow up processing not supported ft_code2070 ft_admin Request lt request ID gt openFT is no longer authorized to process requests for this user ft_code2071 ft_notSupported Request lt request ID gt User data encryption not installed ft_code2072 ft_abort Request lt request ID gt has been deleted ft_code2073 ft_corrupt Request lt request ID gt Error during encryption ft_code2074 ft_cantCreate Request lt request ID gt lt local file gt could not be created ft_code2075 ft_notExist Request lt request ID gt Higher level directory no longer found openFT Script 113 Error messages Internal code Error code Description ft_code2076 ft_access Request lt request ID gt Error on lt local file gt input output ft_code2077 ft_access Request lt request ID gt File now
96. pt is executed in the target system If you do not specify a partner then the script is executed under the local user ID The following command interpreters are used Operating system Command interpreter Windows System call i e an executable file with the specified name is searched for E g to execute a shell command enter cmd c Unix system bin sh c ZOS TSO BS2000 SDF Restrictions 1 A script e g bs2000Script unixScript may only occupy one line and has a limited length The length depends on the openFT version 2 You must specify a script which is not empty for the addressed operating system Format comment context script bs2000Script unixScript windowsScript zosScript Partner lt executeScript gt lt executeScript ref ID repeatable true false gt 56 openFT Script openFT Script statements alphabetical list executeScript Attributes Name Value Meaning ref string Reference to a script context object repeatable true false The default value is true The script may be repeated on a restart If false is specified The script may not be repeated on a restart On a restart the entire ftscript is aborted if it is not possible to determine whether this script has been fully processed It is only possible to switch the openFT instance during script execution in the case of scripts with short runtime
97. ption ft_illegalJobState ft_error Invalid status found on end of request ft_illegalMode ft_error Invalid mode ft_infoFileCantWrite ft_resource Info file cannot be written ft_InterpreterNotAlive ft_resource Interpreter could not be started Execution later ft_invalidStartState ft_error Invalid status on start ft_jobCantCreate ft_resource The request could not be generated ft_jobCloseError ft_resource Error terminating request ft_jobExists ft_error This request already exists ft_jobFailed ft_error An unknown error has occurred ft_listDirectoryError ft_resource Directory cannot be read ft_listDirectoryFilelnfo ft_resource Error writing persistent data ft_listDirectoryNoDirectory ft_notExist No directory ft_listDirectoryOutOfRangeError ft_error Area error on ListDirectory ft_listDirectoryParamError ft_error Parameter error on ListDirectory ft_listDirectorySecurity ft_access Access error on ListDirectory for a local directory ft_listDirWriterCantCreate ft_resource Cannot write persistent ListDirectory data ft_listElementUnknown ft_error The schema and Ftscript do not match There is no such element in a list ft_listenerCantClose ft_resource Listener could not be termi nated ft_lockNotReadable ft_resource Interpreter process not acces sible ft_logfileCantCreate ft_
98. r on the RemoteHost Finally the associated temporary file tmpFile is deleted openFT Script 101 transferFile openFT Script statements alphabetical list fromRemoteFile You use fromRemoteFile to specify the remote source file for file transfer The transfer type data type can be derived from the file name by means of AutodataSpec see section AutoDataSpec on page 94 Restrictions 1 The length of the file name directory and fromRemoteFile is limited and depends on the openFT version The length is the number of characters plus 1 character if directory does not end with a 2 fromRemoteFile must contain a partner specification after de referencing Format lt fromRemoteFile ref ID data auto char bin user recordFormat std undef var fix maxRecSize int ccsname string filenames gt comment partner directory autoDataSpec lt fromRemoteFile 102 openFT Script openFT Script statements alphabetical list transferFile Attributes Name Value Meaning ref string Reference to another file object partner and directory are taken over from this if you have not specified the elements here see section Referencing on page 31 data auto The default value is auto Specifies the data type char bin If char bin or user are specified then the AutoDataSpec user specification is ignored see section AutoDataSpec on page 94
99. r specification after de referencing Format lt toLocalFile ref ID comment partner directory lt toLocalFile gt ccsname string filenames gt Attributes Name Value Meaning ref string Reference to another file object ccsname string Specifies the Coded max 8 characters Character Set see openFT user manual filenames See section File name attributes on page 34 Example See example on page 91 openFT Script 107 transferFile openFT Script statements alphabetical list toLocalTmpFile You use toLocalTmpFile to specify a temporary target file for file transfer from remote to remote see Types of file transfer on page 88 The temporary file is simply a buffer under the local ID The file is assigned to a file object with the specified ID This file object is displayed in the parent context of the current transferFile element and must not already exist there The file is given an internal name The suffix of the file is determined from the suffix of the associated fromRemoteFile If this does not have a suffix then the generated temporary file also has no suffix This file is stored in user memory If Diskquota is activated then this may be exceeded when temporary files are created A corresponding error message fi_err_LOCERR_MEM is output The file object inherits the data MaxRecSize recordFormat ccsname and autoDataSpec specifications in the asso
100. ration error ft_auth Authentication error ft_cantCreate File directory could not be generated ft_cantDelete File directory could not be deleted ft_configuration Configuration defective ft_connection Connection error ft_corrupt File data directory cannot be used ft_error General error ft_exist File directory already exists ft_execute Error executing executeScript ft_local The command script was terminated in the local system with an error ft_localFileStructure Error in the local file ft_notEmpty Directory is not empty ft_notExist File directory does not exist ft_notSupported The functionality is not supported ft_panic Severe internal error ft_paramError Parameter error ft_paramTooLong Parameter too long ft_recoveryFailed Restart failed ft_reference An Ftscript object which is not present is referenced ft_remote The command script was terminated in the remote system with an error ft_remoteFileStructure Remote file structure defective ft_resource Resource error e g not enough storage space no RAM ft_script A script executed with executeScript has terminated with an error code ft_syntax Syntax error openFT Script 137 138 openFT Script Glossary Cross references are written in italics Activity An openFT script consists of activities
101. resource Log file could not be created No logfile no replay ft_logfileCantRead ft_resource Log file cannot be read Replay not possible ft_logfileError ft_resource Log file could not be created No logfile no replay ft_logfilelnvalid ft_resource Invalid log file openFT Script 131 Error messages Internal code Error code Description ft_logfileloError ft_resource IO error for log file ft_logfileNoSuchFile ft_resource Log file could not be found ft_logFileNotFound ft_resource Log file could not be found ft_logfileNotReadable ft_resource Log file cannot be read Replay not possible ft_logfileWrongVersion ft_error Incorrect version of the log file This request cannot be restarted ft_loggerCantClose ft_resource Logger could not be terminated ft_logWrapperCantCreate ft_resource Log file wrapper could not be created ft_logWrapperCantFind ft_resource Log file wrapper could not be found ft_logWrapperCantWrite ft_resource Log file wrapper could not be written ft_mainLockError ft_resource Main lock cannot be set Inter preter will be terminated ft_mainLocklOerror ft_resource Main lock cannot be set Inter preter will be terminated ft_mainLockNotSet ft_resource Main lock not set Interpreter will be terminated ft_nameGroupElem
102. rred with data bin ccsname string Specifies the Coded Character Set max see openFT user manual 8 characte rs filenames See section File name attributes on page 34 Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt transferFile gt lt fromLocalFile name bin mp3 gt lt directory name W openFT ftscript Test data small gt lt autoDataSpec charPattern txt userPattern tab dat default bin gt lt fromLocalFile gt lt toRemoteFile name bin mp3 gt lt partner name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt directory name frg_eis_18 gt lt toRemoteFile gt lt transferFile gt lt ftscript gt In the example the local file bin mp3 is transferred to the remote system UnixP_1 under the name bin mp3 No transfer mode or autoDataSpec is specified The transfer mode is bin default value of autoDataSpec 98 openFT Script openFT Script statements alphabetical list transferFile fromLocalTmpFile You use fromLocalTmpFile to specify a temporary source file for file transfer from remote to remote see Types of file transfer on page 88 The temporary file is simply a buffer under the local ID This temporary file is deleted automatically as soon as it can no longer be used The data MaxRecSize recordForm
103. s see section Restart on page 39 openFT Script 57 executeScript openFT Script statements alphabetical list Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt list id partnerList gt lt partner name WindowsP_1 systemType windows gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt partner name UnixP_1 systemType unix gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt list gt lt context gt lt foreach listRef partnerList selectType partner contextObject partner gt lt executeScript gt lt unixScript gt lt CCDATALecho hello unix gt frg_eis_07 demo txtlJ gt lt unixScript gt lt windowsScript gt lt CCDATALcmd c echo hello windows gt frg_eis_07 demo txt 1 gt lt windowsScript gt lt partner ref partner gt lt executeScript gt lt foreach gt lt ftscript gt An executeScript is run on the computers in the list partnerList Corresponding operating specific scripts are executed depending on the operating system in question It is important to specify the operating system in the partner definition 58 openFT Script openFT Script statements alphabetical list fault 4 11 fault You use fault to cancel the parent activity and
104. s_11 gt lt createDirectory gt lt foreach gt lt foreach listRef Flist selectType file contextObject file execute parallel gt lt transferFile gt lt fromRemoteFile ref file gt lt partner ref remote gt lt directory name frg_eis_11 gt lt fromRemoterFile gt lt toLocalFile ref file gt lt directory name frg_eis_11 gt lt toLocalFile gt lt transferFile gt lt foreach gt lt ftscript gt In the directory frg_eis_11 on the computer UnixP_1 the file tree is copied to the directory frg_eis_11 under the local ID openFT Script 71 foreach openFT Script statements alphabetical list In the first foreach sequence all the necessary directories are copied sequentially using createDirectory ListDirectory returns the directories a a b and a b c in sequence for the directory frg_eis_11 a b c frg_eis_11 is itself defined as the base directory with baseDir A directory cannot be created unless the parent directory exists In the second foreach sequence the files are copied in parallel since all the target directories are now present 72 openFT Script openFT Script statements alphabetical list ftscript 4 15 ftscript ftscript is the root element of the script The element always corresponds to a sequence activity see section sequence on page 86 Restrictions There are no restrictions Format lt ftscript version
105. ss rroa Hw he BE A Be ke 108 toRemoteFile 4 064 44 a ew ok Ree eR kenn 110 Erroi Messages 2 2 ces sek eS ee ee OS eR ee ee 111 openFT Script 1 Preface This document describes Version 1 of openFT Script openFT Script is a language for the description of multiple logically interde pendent openFT requests openFT Script makes it possible to combine these requests to form a single request Ftscript openFT Script reduces the customer workload involved in monitoring sequential openFT requests and permits restarts in the event of a downtime openFT Script uses XML notation You can use openFT Script under Windows as well as under Unix systems 1 1 Target group This manual is intended for XML programmers who want to create openFT Script requests openFT Script requests are used to start openFT requests in Windows or Unix systems and for example transfer files to or from other systems A knowledge of Windows and UNIX based operating systems as well as an understanding of XML would be useful when reading this manual The manual applies to Windows Sun Solaris systems and to portings to other UNIX platforms The operating system dependent differences are described in detail in the Release Notice which is supplied with each product CD openFT Script 7 Concept of openFT manuals Preface 1 2 Concept of openFT manuals for UNIX and Windows systems The complete description of openFT and its components comprises a
106. st Wildcard pattern If the pattern matches the specified file name then the file is transferred in bin format charPattern patternlist Wildcard pattern If the pattern matches the specified file name then the file is transferred in char format userPattern patternlist Wildcard pattern If the pattern matches the specified file name then the file is transferred in user format default char bin user The default value is bin Specifies the assumed data type if no pattern is found patternlist is the list of patterns separated by spaces openFT Script 95 transferFile openFT Script statements alphabetical list Example lt xml version 1 0 encoding UTF 8 gt lt ftscript version 1 gt lt context gt lt list id Filelist gt lt file name bin mp3 gt lt file name text txt gt lt list gt lt list id HostList gt lt partner name UnixP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt partner name WindowsP_1 gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt list gt lt context gt lt foreach listRef HostList selectType partner contextObject host gt lt foreach listRef FileList selectType file contextObject file gt lt transferFile gt lt fromLocal
107. state may be caused by an error occurring during the execution of the activity itself an error in a child activity which is not intercepted by a faulthandler A suitable faulthandler is searched for in the current context see section fault handler on page 62 The activity is replaced by the content of the faulthandler In this case the context objects of the activity are displayed in the faulthandler All the activity s child activities are aborted and their contexts are lost If these child activities have started file transfer requests then these are also aborted If no suitable faulthandler is found then the error is passed to the parent activity The parent activity switches to the error state 40 openFT Script Structure of an openFT script Running an openFT script If no suitable faulthandler is found in any of the higher level activities then the entire script is terminated Diagnostic information You can activate a trace in order to conduct a precise analysis of the ftscript run including restart see section Restart on page 39 ftscript t The trace logs every action in the request openFT Script 41 42 openFT Script 4 openFT Script statements alphabetical list This section describes the individual openFT Script statements in alphabetical order The use of the statement The existing restrictions The format describes the syntax of the statement For an
108. statements 43 baseDir 2 22 eee ei cease eee edd ara 44 COMME 3 ar a me whee Ge ww we ee theo ad 45 COMEX Se e eke amp ORR S RAED ERS E RES RHEE Ee ES 46 createDirectoOry 2 2622 sees eee eee ee es 47 deleteDirectory 2 2 ee eee ee es 49 SEIBISFNRE 2 o 2a Geese eR EGR Se REE ee HEE eas 51 directory sera sa Ke dis 53 MP cs se ee we we eee We ee Re a ade 54 BRELIESENDI o oc zu sie as SES es oe SSE EOS RES 56 fallt ee rennen nn 59 faulthandler 2 22 2a sa eee eee ac 62 CASE na ae naeh 64 GETAN wen a ee ee ee 64 Ne a 0 eee SS ee Sees amp oe eee 66 INPaEN ae ce cree ble S She eas ee 67 fiscript o c ceed ene ee Oe ee ee ee wee 73 IS Heather 74 isfDiresl ry gt o ca coea Rae 4 ee ra a 75 Parallel 22 ws see eae ek ae Soe ae ee 78 DANE os hee ee EEA ee eS A eH a Oe 80 processingAdmission s e gt 4 es ri Henn 81 transferAdmission 22 2 Cm nn 82 TSEROMISSIOR Sk kK ke Be aaa 82 serAdmission s eo s aoras cde o SDE nenn 82 SECHDE saeara aa A a Se a a ek 84 SOQUENCE chek eo SOARES RARE RH OE oR EE 86 transferFil 2 242 664 0268 64 ba Dd RRR EERE eS 88 PUNTA SG a Bi a bck en a ah de A 94 fromLocalFile 2 442429 25 s ss e948 4 92 a 97 fromiocalmprile 2k x 45 4 au m OE aa 99 fromRemoteFile 2 2 22mm 102 openFT Script Contents remoteFailureSeript ass as eS eR eRe sara 104 rEMOlSSUEGESSSEHPE s un aa a a ae ae 106 totogalFile s s rrt uep i EA KARE HESS GE GEES ES 107 TOLOCAITTIORIG rs
109. t lt LCDATALcmd c echo anything ok gt frg_eis_1l15 status txtl gt lt windowsScript gt lt script gt lt script id anything crap gt lt unixScript gt lt LCDATALecho anything crap gt frg_eis_15 status txt gt lt unixScript gt lt windowsScript gt lt CDATALcmd c echo anything crap gt frg_eis_15 status txtl gt lt windowsScript gt lt script gt lt partner id remote name UnixP_1 systemType unix gt lt transferAdmission gt lt ftacAdmission ftacAdmission FTACADM gt lt transferAdmission gt lt partner gt lt context gt lt sequence gt lt context gt lt faulthandler gt lt default gt lt executeScript ref anything crap gt lt default gt lt faulthandler gt lt context gt lt transferFile gt lt fromRemoteFile name bin mp3 gt lt partner ref remote gt lt directory name frg_eis_15 gt lt fromRemoteFile gt lt toLocalFile name bin mp3 gt lt directory name frg_eis_15 gt lt toLocalFile gt lt remoteSuccessScript ref anything ok gt lt remoteFailureScript ref anything crap gt lt transferFile gt openFT Script 91 transferFile openFT Script statements alphabetical list Example I cont lt executeScript ref anything ok gt lt sequence gt lt transferFile writeMode extend gt lt fromRemoteFile name status txt data char gt lt partner ref remote gt lt directory name frg
110. t openFT Script statements alphabetical list faulthandler Format lt default gt comment context Activity lt default gt Attributes There are no attributes openFT Script 65 file openFT Script statements alphabetical list 4 13 file You use file to define a file Properties of a file The file has a system specific name The file is located on a concrete system partner in a concrete directory directory Restrictions There are no restrictions Format lt file id ID ref ref filenames gt comment partner directory lt file gt Attributes Name Value Meaning id string A unique ID in the current context The context object is referenced under this ID ref string Name of another file context object filenames See section File name attributes on page 34 66 openFT Script openFT Script statements alphabetical list foreach 4 14 foreach You use foreach to execute a sequence for each element in a list see section list on page 74 foreach executes the child elements of each element in the selected list as a sequence You can specify whether the sequences are executed one after the other in the same order as the list elements or in parallel Restrictions There are no restrictions Format lt foreach listRef ID contextObject ID execute parallel sequential selectType file p
111. t 11 ftcans openFT Script Commands 2 2 ftcans Cancelling an openFT Script request tcans allows you to cancel openFT Script requests that have not yet been concluded You can cancel either a specific openFT Script request or all the openF T Script requests for a user This also cancels any file transfer requests started by the specified openFT Script requests which are currently running This may take a little time The status of the openFT Script request is then set to cancelled to prevent any restart If the openFT Script request that is to be cancelled is currently being processed then the following message is output at stderr ftcans Cancellation request for ftscript id ftscriptid started If the request has been started but not yet processed then the following message is sent to stderr ftcans ftscript id ftscriptid cancelled Format ftcans h u lt User ID 1 32 gt lt ftscriptid gt a Description h Outputs the command syntax on screen Any specifications after h are ignored u User ID User ID under which the search for the openFT Script request that is to be cancelled is performed Only administrators may input a user ID The default value is the calling party s user ID ftscriptid Identification of the openFT Script request This is output if the openFT Script request is started via an ftscript command a means that all the user s openFT Script requests are to be cancelled 12 ope
112. t use an FTAM openFT compatible product for file transfer If openFT is not used then the restrictions described in the openFT manual apply At least Java JRE 1 4 2 07 is required for the Java runtime environment On Windows systems the extended language version of Java JRE is also required This does not have to be explicitly installed if Java JDK is installed 10 openFT Script 2 openFT Script Commands The openFT Script commands are used to start and administer openFT Script requests The requests themselves are stored in a text file in the form of XML statements These XML statements are described beginning on page 43 2 1 Overview of the openFT Script commands Starting and ending openFT Script requests ftscript Starts an openFT Script request ftcans Cancels an openFT Script request ftdels Deletes an openFT Script request Displaying openFT Script requests and openFT Script activities ftshws Displays openFT Script requests ftshwact Displays the activities of an openFT Script request FT administrators can also use the ftsetiava command to administer the link to the Java executable see openFT System Administrator Manual and the online help system As administrator you can view cancel and delete all the openFT Script requests in the system and view the activities associated with all the openFT Script requests Users without administrator rights can only administer their own openF T Script requests openFT Scrip
113. the context object FileList The list only contains the file names not the directory itself The files are distributed in parallel to frg_eis_12 local bin on all the computers in the RemoteHostList The context object FileList from the listDirectory activity is displayed in the context of the parent element in the example ftscript openFT Script 77 parallel openFT Script statements alphabetical list 4 18 parallel You can specify parallel to run all the activities simultaneously and indepen dently of one another However truly simultaneous execution e g time slicing is not implemented The parallel activity is terminated when all the child activities have terminated If one child activity outputs an error then the other child activities are cancelled The results of any given child activity are not visible in the other child activities They are displayed in the context of the parallel activity when execution of all the child activities has completed The transfer of context objects to the parent context is not planned at present Consequently context objects which arise during the parallel activity are discarded e A listDirectory as a direct child element of a parallel activity does not l return a usable event list see section listDirectory on page 75 Restrictions If the maximum number of outbound connections in openFT is set to 1 then all the file transfer requests are worked throu
114. the openFT Script request is ensured even after a system failure Format ftscript h t lt Ftscriptfilename gt Description h Outputs the command syntax on screen Any specifications after h are ignored t Diagnostic information a trace is created Ftscriptfilename Name of the script file which contains the XML statements for the openFT Script request that is to be run 16 openFT Script openFT Script Commands ftscript Return code 0 OK 4 Syntax error 50 Ftscript process could not be started 52 Maximum number of Ftscript users 1024 exceeded 55 Ftscript ID not found 250 Internal error openFT Script 17 ftshwact openFT Script Commands 2 5 ftshwact Displaying the activity associated with an openFT Script request Outputs information about the individual openFT Script requests Format ftshwact h csv a lt ID of the activity gt d lt Level depth 1 gt c lt Chapter gt st W I RIIETIITFIITKIITDIIC u lt user ID 1 32 gt lt ftscriptid gt Description h Outputs the command syntax on screen Any specifications after h are ignored csv The information is output in CSV format a ID of the activity Only the specified activity is displayed You may also indicate a specific instruction in a request An activity s ID can be determined using a preceding ftshwact command without the a option This means that you can view the status of the a
115. tive schema Ft_rformOutOfRange ft_error Incorrect specification for RecordFormat ftAPI version incorrect ft_schemaConflict ft_error Unknown activity schema defective ft_schemaNotFound ft_resource Schema file ftscript xsd not installed ft_scriptElementUnknown ft_error The schema and Ftscript do not match There is no such script ft_scriptIdNotGiven ft_error Script ID not specified ft_scriptinfoFileCantCreate ft_resource Script information cannot be generated ft_scriptinfoFileCantWrite ft_resource Script information cannot be written ft_scriptinfoFileCantWrite2 ft_resource Script information cannot be generated ft_serverSignalCommand ft_error Error in request acceptance by server process ft_sessionNotFound ft_resource No valid openFT session found ft_signalingFailed ft_resource Signalling to port failed Execution later ft_socketClose ft_resource Socket cannot be closed ft_stateUnknown ft_resource Unknown status 134 openFT Script Error messages Internal code Error code Description ft_statusCantRead ft_resource Status cannot be read Request cannot be executed ft_statusCantWrite ft_resource Cannot write status ft_termSocketClose ft_resource Socket cannot be closed ft_timestampCantCreate ft_resource Timestamp could not b
116. toRemoteFile name data txt gt lt partner ref remote2 gt lt directory name frg_eis_16 gt lt toRemoteFile gt lt transferFile gt lt ftscript gt In the example the file data txt is first copied from the partner remote to a temporary file The temporary file is given an internal name The suffix of the temporary file corresponds to the suffix of the associated fromRemoteFile here txt Conversion is performed using autoDataSpec charPattern for character symbols because the filename suffix corresponds to the pattern txt see section AutoDataSpec on page 94 If the local system is a Windows system then the line ends are converted accordingly When the temporary file is transferred to the remote system remote2 the autoDataSpec settings made when the temporary file was created are taken over They are inherited as well as MaxRecSize and the data properties of the fromRemoteFile element If the local system is a Windows system then the data is not converted on the second transfer In the case of a local Unix system the reverse would be true When the transfer to the local system is performed no data is converted Instead the data is converted on the subsequent transfer to the remote system openFT Script 93 transferFile openFT Script statements alphabetical list AutoDataSpec You use AutoDataSpec to define the transfer mode for the file in which the element was specifie
117. tory lt remote file gt not available ft_code2155 ft_notExist Request lt request ID gt Remote system File directory lt remote file gt not found openFT Script 117 Error messages Internal code Error code Description ft_code2156 ft_notExist Request lt request ID gt Remote system Home directory not found ft_code2157 ft_access Request lt request ID gt Remote system Not possible to rename ft_code2158 ft_resource Request lt request ID gt Remote system Not enough storage space for lt remote file gt ft_code2159 ft_notExist Request lt request ID gt Remote system File owner unknown ft_code2160 ft_auth Request lt request ID gt Remote system Invalid file password ft_code2161 ft_cantDelete Request lt request ID gt Remote system The file s retention period has not yet expired ft_code2162 ft_auth Request lt request ID gt Remote system File directory lt remote file gt is write protected ft_code2163 ft_remoteFile Request lt request ID gt Structure Remote system File structure not supported ft_code2164 ft_syntax Request lt request ID gt Remote system Syntax error in resulting file name ft_code2165 ft_notSupported Request lt request ID gt Remote system Transparent file transfer not supported ft_code2166 ft_notSupported Request lt request ID gt Re
118. u do not specify a partner then the file is deleted under the local user ID If you want to delete all the files in a directory you should use istDirectory see section listDirectory on page 75 together with foreach see section foreach on page 67 You can use baseDir see section baseDir on page 44 to define a base directory from which deleteFile is run e You should note the response on a restart see section Restart on l page 39 Restrictions The length of the file name baseDir and deleteFile is limited and depends on the openFT version THe length is the number of characters plus 1 character if baseDir does not end with a Format lt deleteFile ref ID faultIfNotExists yes no filenames gt comment context partner directory lt deleteFile gt Attributes Name Value Meaning ref string Reference to a file context object faultIfNotExists yes no The default value is no If the file does not exist then no message is output If yes is specified then ft_notExists is output if the file does not exist On a restart see section Restart on page 39 ft_recoveryFailed is output This may also occur if the instance is switched filenames See section File name attributes on page 34 openFT Script 51 deleteFile openFT Script statements alphabetical list Example lt xml version 1 0 encoding UTF 8
119. upply an appropriate response If error handling terminates correctly i e without errors then the associated activity is considered to have been completed successfully Similarly if error handling is terminated with an error then the activity is considered to be defective The general structure of an openFT script fiscript is as follows lt ftscript version 1 gt lt context gt ContextObjects faulthandler lt context gt Activities lt ftscript gt Every ftscript has the statement lt ftscript version 1 gt as its root element The root element contains the following sub elements an optional context with context objects and a maximum of one faulthandler one or more activities which are executed in the specified sequence For further information on the syntax see section Syntax of the openFT Script statements on page 43 openFT Script 29 Components of an openFT script Structure of an openFT script 3 1 1 Activities There are various types of activity Internal activities Internal activities consist of instructions sent to the Ftscript interpreter to control operation These include ftscript sequence parallel foreach empty and fault For a description see chapter openFT Script statements alphabetical list on page 43 External activities The external activities are statements issued to openFT instructing it to run the required functions These include execut
120. was not successful parameter error ft_OrderQueueNotFound ft_resource Order queue could not be found ft_parseByteArray ft_error Parse or IO error ft_parseError ft_error Parse or IO error ft_portFileCantClose ft_resource PortFile could not be closed correctly ft_portNotFound ft_resource No port found Execution later ft_readStatus ft_error Parameter error while deter mining status ft_recordSize ft_error Incorrect specification for maxRecSize Defective schema ft_recoveryCreateDirectory ft_recoveryFailed Recovery failed See manual ft_recoveryFailed ft_recoveryFailed Recovery failed See manual ft_replaylllegalEntry ft_error Neither an error code or request ID found on replay ft_reqlistOutOfRange ft_error Error querying the openFT request list openFT Script 133 Error messages Internal code Error code Description ft_reqstatParamError ft_error Incorrect parameter for reqstat Internal error ft_requestidFormat ft_error Error in the format ofthe request ID ft_requestldlllegalFormat ft_error Error in the format for the request ID ft_requestinvalid ft_error Invalid request ft_resumeForbidden ft_error Resume not possible ft_resumeUnloggedTransfer ft_resource More than one file transfer open ft_rformlllegal ft_error Incorrect specification for RecordFormat Defec
121. y could not be deleted ft_deleteNoFilename ft_paramError No directory or file name was specified for deletion ft_deleteOrderQueue ft_resource Order queue could not be deleted ft_deleteParamError ft_error Parameter error on deletion ft_deleteParents ft_error Directory will not be deleted ft_deleteSelf ft_error Directory will not be deleted ft_delparError ft_error Error setting delpar ft_directionModeOutOf ft_error Incorrect specification for Range direction ftAPI version ft_directoryElement ft_error Schema and Ftscript do not Unknown match There is no such directory element ft_doubleContextObject ft_error Context object initialized more than once ft_doubleLocalTmpFileRef ft_reference ID for local temporary file already assigned in this context 124 openFT Script Error messages Internal code Error code Description ft_emptyEventQueue ft_error Internal error Empty queue ft_emptyParallelQueue ft_error Internal error Empty queue ft_emptyTransferAdmission ft_paramError The transfer admission does not contain any user or FTAC admission ft_encryptionlllegal ft_error Incorrect specification for encryption Defective schema ft_encryptionOutOfRange ft_error Incorrect specification for encryption ftAPI version ft_err_ CONNERR_NOCONN ft_connection No free transport connection ft_err_ CONNERR_NOTAVAIL
Download Pdf Manuals
Related Search
Related Contents
Télécharger la notice de ce produit PCM-3292 Users Manual InFocus LP770 User's Manual Approx appUEC01P FULL TANK INSTALLATION MANUAL and Security Information Chélasolv Chélasolv MODE D`EMPLOI Copyright © All rights reserved.
Failed to retrieve file