IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  WTX PUT with specify file rights

    Posted 08/17/18 07:05 AM

    Originally posted by: skioord


    i want to use the  file adapter in wtx to create file and specify the rights .

    Creating a file runs well.

    My questions is how to set the  file rights to have  rwxrwxrwx  (777) on a solaris platform.

    Hereafter my pseudo code:

    (PUT("FILE",TargetDir+"/mynewfilename"+"_"+FROMDATETIME(CURRENTDATETIME(),"CCYYMMDDHH24MMSS")+
    "_"+ fillleft(numbertotext(index),"0",3)+".CSV",package(File:Out))

     

    thank you 

    luc

     


    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: WTX PUT with specify file rights

    Posted 08/21/18 08:23 AM

    Originally posted by: PaulBrett


    Setting the appropriate UMASK setting on your Unix box would be the way to sort this:

    https://en.wikipedia.org/wiki/Umask

    With umask 0000 the best you're going to get is rw-rw-rw-.

    Not sure why you would want to set the execute bit on output files, especially for everybody.

    Thank you

    Paul

    Follow me on Twitter


    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 3.  Re: WTX PUT with specify file rights

    Posted 08/21/18 09:40 AM

    Originally posted by: skioord


    hello Paul ,

    thanks for the answer.

    I need the execute rights because the file should be deleted by Sterling when read by Sterling.

     

    Luc


    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange