User Tools

Site Tools


pub:idocsapi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
pub:idocsapi [2021/01/25 11:29] kkramerpub:idocsapi [2021/01/25 11:56] – [ESNDFILE] kkramer
Line 122: Line 122:
 ===== ESNDFILE ===== ===== ESNDFILE =====
  
-Quick utility to duplicate a SCS spool file and change the owner on the new file. Original and new owner must both reside in the System Directory. This command was named DUPSPLF initially but changed to IFDUPSPLF in version 6.83 to ensure that it’s unique on all customer systems.+new command ESNDFILE is introduced in iDocs 6.97 to send a file or folder from the IBM i to a SFTP server using Password authentication.
 <html><pre> <html><pre>
-                   Duplicate iSeries Spooled File (IFDUPSPLF                  +                     Send IFS File to SFTP server (ESNDFILE                    
-                                                                                +                                                                                 
- Type choices, press Enter.                                                     + Type choices, press Enter.                                                      
-                                                                                +                                                                                 
- Spooled file . . . . . . . . . . > INV           Name                          + SFTP server  . . . . . . . . . .   'tdgtest.ocr-inc.com'                        
- Spooled file number  . . . . . > 2             1-999999, *ONLY, *LAST        +                                                                                 
- Job name . . . . . . . . . . . > ANGUYENA      Name, *, *ALL                 + Authentication User ID . . . . .   testID                                       
-   User Name  . . . . . . . . . . >   ANGUYEN     Name                          +                                                                                 
-   Job Number . . . . . . . . . . >   106730      000000-999999                 + Authentication Password  . . . .                                                
- Output Queue . . . . . . . . . .   QPRINT        Name                          +                                                                                 
-   Library  . . . . . . . . . . .     *LIBL       Name, *LIBL                   + Port . . . . . . . . . . . . . .   22            Number                         
- New SPLF user data . . . . . . .   *SAME         Character value, *SAME        + IFS Local Path . . . . . . . . .   '/home/anguyen/awtest.txt'                   
- New SPLF form type . . . . . . .   *SAME         Character value, *SAME        +                                                                                 
- New SPLF name  . . . . . . . . .   *SAME         Name, *SAME                   +                                                                                 
- New SPLF Owner . . . . . . . . . > OFERRER       Name, *SAME                   +                                                                                 
- Hold new SPLF  . . . . . . . . .   *NO           *YES, *NO                     + Remote folder  . . . . . . . . .   '/QBND'                                      
- Page range:                                                                    +                                                                                 
-   Starting page  . . . . . . . .               Number                        +                                                                                 
-   Ending page  . . . . . . . . .   *END          Number*END                  +                                                                                 
-                                                                                + Overwrite  . . . . . . . . . . .   N             YN                           
-                                                                         Bottom +                                                                         Bottom  
- F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display    + F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display     
- F24=More keys                                                                 + F24=More keys                                                                  
 </pre></html> </pre></html>
  
 **Parameters:**  **Parameters:** 
  
-Spooled file: input spool file name \\ +SFTP server \\ 
-Spooled file number: input spool file number \\+Authentication User ID \\
 Job name/User Name/ Job Number: job ID of input spool \\ Job name/User Name/ Job Number: job ID of input spool \\
 +Authentication Password \\
 +Port number \\
 +IFS local path \\
 +Remote folder \\
 +Overwrite (Y/N) \\
  
-Output Queue/Library: name and library of output queue \\ 
-New SPLF user data: enter user data of output spool file (*SAME to retain the same attribute of input spool file) \\ 
-New SPLF form type: enter form type of output spool file  (*SAME to retain the same attribute of input spool file)\\ 
-New SPLF name: enter spool file name of output spool file  (*SAME to retain the same attribute of input spool file\\ 
-Hold new SPLF: Hold the output spool file name\\ 
-Page range: enter the range of pages of input spool file name\\ 
- 
-**Example:** 
- 
-IFDUPSPLF FILE(INV) SPLNBR(2) JOB(106730/ANGUYEN/ANGUYENA) OWNER(OFERRER) 
  
 +Result on SFTP Server: \\
 +{{:pub:idocs:esndfile001.png?600|}}
 ---- ----
  
 <html>&#091;</html>[[start#idocs | Up to Main Menu ]]<html>&#093;</html> <html>&#091;</html>[[start#idocs | Up to Main Menu ]]<html>&#093;</html>
  
pub/idocsapi.txt · Last modified: 2023/07/25 13:08 by kkramer