7.27 DEF_MAP_EX

The DEF_MAP_EX command is used to define an argument to a 3GL external method and how it is mapped. This is used when calling either a 3GL program or a 3GL procedure in a service program on IBM i.

The DEF_MAP_EX is a declarative command. It does not have any matching end command. Its 3GL external method is executed using the INVOKE command.

Also See

7.27.1 DEF_MAP_EX Parameters

7.27.2 DEF_MAP_EX and Calling a Program

7.27.3 DEF_MAP_EX and Calling a Procedure in a Service Program

7.28 DEF_MTH_EX Command


                                                                                               Required                                                                      

    DEF_MAP_EX ---- NAME ----------- Parameter Name -------------->                                                                                                                                    

                       >--- FOR   ------------ *BOTH  ------------------------>
                                                           *INPUT                        
                                                           *OUTPUT                       
                                                          *RESULT                                                                                         

                       >--- TYPE  ---- ------ *BINARY ------------------------>
                                                         *BOOLEAN                      
                                                         *CHAR                         
                                                         *DATE                         
                                                        *DATETIME                     
                                                        *FLOAT                        
                                                        *INT                          
                                                       *NCHAR                        
                                                       *NVARCHAR                     
                                                       *PACKED                       
                                                       *SIGNED                       
                                                       *TIME                         
                                                      *VARBINARY                    
                                                      *VARCHAR                                                                                        

--------------------------------------------------------------------------                                                                  

                                                                                                  Optional                                                                      

                    >--- LENGTH  -------- *DEFAULT  ------------------------->
                                                       numeric value                                                                                 

                   >--- DECIMALS ------- *DEFAULT  -------------------------->
                                                                                           numeric value                                                                                    

                  >--- FORMAT --------- *DEFAULT  -------------------------->
                                                      *DMY                          
                                                      *EUR                          
                                                     *HMS                          
                                                     *ISO                          
                                                     *JIS                          
                                                     *JUL                          
                                                    *MDY                          
                                                    *NTS                          
                                                    *USA                          
                                                   *VAR2                         
                                                   *VAR4                         
                                                  *YMD                                                                                            

                >--- DATE_SEPARATOR - *DEFAULT  -------------------------->
                                                    *BLANK                        
                                                   *COMMA                        
                                                   *DOT                          
                                                  *HYPHEN                       
                                                  *SLASH                                                                                          

               >--- TIME_SEPARATOR - *DEFAULT  -----------------------------|
                                                 *BLANK                        
                                                *COLON                        
                                                *COMMA                        
                                                *DOT   

  • No labels