Parameter TDUDATA for a PSO transfer for use on Windows?
search cancel

Parameter TDUDATA for a PSO transfer for use on Windows?

book

Article ID: 40549

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Windows XCOM Data Transport - z/OS

Issue/Introduction

PSO transfers are performed from z/OS to Windows to send spool files. Some of these spool files need to be processed once received on the Windows platform to remove trailing blanks. Is there a way to use parameter TDUDATA= for  PSO transfers to identify them as those files that need to be processed?

Environment

  • XCOM™ Data Transport® for z/OS
  • XCOM™ Data Transport® for Windows

Resolution

TDUDATA cannot be specified as a destination/config member parameter, but there are other destination/config member parameters that can be used to set the  XCOM for Windows parameter REMOVE_TRAIL_BLANKS from the XCOMPRE.bat user exit.

One way would be to have two destination/config PSO members that point to the same target destination, you can direct which SPOOL file goes to which XCOM destination.

For example:

  1. Make a copy of your current XCOM for z/OS PSO destination/config member.
  2. Edit the member and add the XCOM for z/OS destination/config parameter PSOPREF=XCRTBYES. This will override the PSOPREF value specified in the XCOM for z/OS DEFAULT table:
    PSOPREF:
    Specifies the high-level qualifier that is used by the PSO interface when allocating temporary data sets. This value is also used by PDSE program library transfers when creating temporary data sets. 
*      PSO DEST FOR Windows XCRTBYES
*                                                      
TYPE=DEST                                              
DEST= XCRTBYES                                                                       
IPNAME=xxx.xxx.xxx.xxx                                 
IPPORT=xxxxx                                           
SECURE_SOCKET=NO                                       
PSOUSER=xxxxxxxx                                       
PSOPASS=xxxxxxxx                                    
PSOWAIT=NO                                             
PSOPREF= XCRTBYES        

 By directing the SPOOL files that require special processing to this XCOM for z/OS PSO destination XCRTBYES it allows for the ability to define a unique/specific prefixed remote filename:
      remote_file:     " XCRTBYES.xxxxxxxx.xxxxxxxx.xxxxxxxx"

which can be used by the XCOM for Windows XCOMPRE exit to set the REMOVE_TRAIL_BLANKS=YES for this particular transfer:

:XCOMPRE_REMOTE
       if /%use_echo%/ == /YES/ echo XCOMPRE_REMOTE 
              SET xcrmtfname=/%remotefile:~1,8%/  
rem The following two if statements are case-sensitive. To make them not case-sensitive
rem a "/I" must follow the word "if" as if /I /%file%/ == ......
       if NOT /%xcrmtfname%/ == /"XCRTBYES"/ GOTO XCOMPRE_END  
       %xcomqm% -p%local_reqno% REMOVE_TRAILING_BLANKS =YES
GOTO XCOMPRE_END

Additional Information

Please be aware that the above XCOMPRE code is a sample. The user will be responsible for making the necessary changes or updating the script for their site specifications and/or maintenance.