ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

CPY a stream file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • LBurkett99
    replied
    I like that. Thank you.

    Leave a comment:


  • EmmanuelW1
    replied
    Another option, since the default for TODIR ('.') is current directory, is to use CHGCURDIR to change your current directory to the source directory.

    Then you would just need to specify the new object name on the TOOBJ parameter.

    Cheers,

    Emmanuel

    Leave a comment:


  • LBurkett99
    replied
    Thank you.

    Leave a comment:


  • JonBoy
    replied
    You use only the first and third parameters - leave the second one at the default. i.e. use OBJ and TOOBJ - you need the full qualified name in both cases.

    At least that is the way I get it to work. I am forever forgetting and creating copies in the root! There's probably some unixy magic incantation to avoid the full path but ...

    OBJ('/home/jon/lab03/oldfile')
    TOOBJ('/home/jon/lab03/newfile')

    Leave a comment:


  • LBurkett99
    started a topic CPY a stream file

    CPY a stream file

    I have tried with no success to use option 3=Copy on the Work with Object Links screen to copy a file to the same directory with a different name. How can I do such a copy?
Working...
X