Example 8: Using the DEBUG statement

The example in Figure 1 adds the DEBUG DD statement, which creates a data set that contains the message data, as described in DEBUG.

Figure 1. FTP connection with the DEBUG DD statement
//FTP EXEC PGM=AMAPDUPL 
//SENDSTP  EXEC PGM=AMAPDUPL     
//SYSPRINT DD SYSOUT=*           
//DEBUG    DD DSN=PDUU.DEBUG,DISP=(,CATLG),      
//            UNIT=SYSALLDA,SPACE=(CYL,(1,1),RLSE)     
//SYSUT1   DD DISP=SHR,DSN=H44IPCS.WESSAMP.TRKS055K 
//SYSIN    DD *                           
USERID=anonymous                          
PASSWORD=anonymous                        
TARGET_SYS=testcase.boulder.ibm.com       
TARGET_DSN=wessamp.bigfile                
WORK_DSN=wes.ftpout                       
WORK_DSN_SIZE=500                         
DIRECTORY=/toibm/mvs                      
PMR=12345.123.123                         
//