IBM Z and LinuxONE IBM Z

IBM Z

The enterprise platform for mission-critical applications brings next-level data privacy, security, and resiliency to your hybrid multicloud.


#Servers
#IBMZ
#Enterpriseserver
 View Only
  • 1.  Sterling Connect:Direct (NDM)

    Posted 07/03/26 01:35 PM

    Hi,

    I am trying to create an NDM process that can be used across with the naming depending on the current date/time.  I have the process defined as following:

     /* %SUBDATE     : submitted date in cyymmdd format        */
     /*                c "0" 20th, "1" 21st century            */
     /* %SUBDATE1    : submitted date in ccyymmdd format       */
     /* %SUBDATE2    : submitted date in ccyyddmm format       */
     /* %SUBDATE3    : submitted date in mmddccyy format       */
     /* %SUBDATE4    : submitted date in ddmmccyy format       */
    BT#NDM01 PROCESS                                           -
             &DATE=%SUBDATE                                    -
             &TIME=%SUBTIME                                    -
             &DATE1=%SUBDATE1                                  -
             &DATE2=%SUBDATE2                                  -
             &DATE3=%SUBDATE3                                  -
             &DATE3=%SUBDATE4                                  -
             &TO_DSN=\NEED.TO.SPECIFY\                         -
             &TO_EXT=\.txt\                                    -
             &TO_DISP=RPL                                      -
             &TO_SYSOPTS='xlate(no)'
    
             SYMBOL &T_DSN=&DATE1 || \_\ || &TIME || \_\ ||    -
                    &TO_DSN || &TO_EXT
    
    FILE1    COPY                                              -
             FROM (PNODE                                       -
                   DSN=&FROM_DSN                               -
                   )                                           -
             TO                                                -
                  (SNODE                                       -
                   DSN=&T_DSN                                  -
                   DISP=&TO_DISP                               -
                   SYSOPTS=&TO_SYSOPTS                         -
                   )                                           -
                  CKPT=0K

    The following is the control card that executes the process:

    SIGNON
      SUBMIT PROCESS=BT#NDM01     -
        NEWNAME=COPY1                                      -
        SNODE=XXXXX                                 -
        SNODEID=(XXXXX)                                  -
        CASE=YES                                              -
        NOTIFY=USERID                                        -
        &FROM_DSN=INPUT.FILE        -
        &TO_DSN=OUTPUT_FILE
    SIGNOFF

    With this option it is not possible to change the name of the output file.

    Is it possible to create the actual control cards that execute the process to include the current date/time?

    Thank you very much for any assistance with this matter



    ------------------------------
    Girish Sajja
    ------------------------------


  • 2.  RE: Sterling Connect:Direct (NDM)

    Posted 07/06/26 12:59 AM

    Try creating the control statement in a separate step using a language of your choice and write into a file that is used in the NDM step.

    You could use Sort, COBOL or Python to create the NDM command card and set a unique file name.



    ------------------------------
    Christopher Hanks
    Jacksonville FL
    ------------------------------



  • 3.  RE: Sterling Connect:Direct (NDM)

    Posted 30 days ago

    It looks like there is a difference on how the concatenation works between a UNIX and Windows secondary node NDM server.

    The following works for Windows:

         &DTE=%SUBDATE1                                        -
         &TME=%SUBTIME                                         -
         &CP_FDSN=DSN=TEST.FILE                                -
         &CP_TEMP=&TME. || \_Destination_File.txt\             -
         &CP_TMP2=\_\                                          -
         &CP_TDSN=FILE=&DTE. || &CP_TMP2. || &CP_TEMP.

    The following works for UNIX:

         &DTE=%SUBDATE1                                        -
         &TME=%SUBTIME                                         -
         &CP_FDSN=DSN=TEST.FILE                                -
         &CP_TDSN=\FILE=unx_dir0/\ ||                          -
           \"&DTE"\ || \_\ || \"&TME"\ ||                      -
            \_Test_File.txt\


    ------------------------------
    Girish Sajja
    ------------------------------