sponsored links

Collapse

Announcement

Collapse
No announcement yet.

IFS copy/delete file from a CLP

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

  • IFS copy/delete file from a CLP

    hi guys,

    anybody tell me pl how copy a file in ifs fldr to a subfldr and also how delete a file. i want in cl program.

    i will thankyoufull to you.

    kali

  • #2
    Re: IFS copy/delete file from a CLP

    Use COPY (or CPY) to copy and DEL (or RMVLNK) to delete a streamfile in the IFS.
    PHP Code:
    COPY OBJ('/Path_From_Stmf/Stmf_Name.ext'TOOBJ('/Path1/Path2/.../Any_Stmf_Name.ext')
     
    DTAFMT(*TEXT or *BINARY)

    DEL OBJLNK('/Path1/Path2/.../Stmf_To_Delete.ext'
    Philippe

    Comment


    • #3
      Re: IFS copy/delete file from a CLP

      Mercury thanks you but can you tall me how cpy many txt files in one time. it is saying More than one name matches pattern. select 1 file.

      also what is wrong bewlo:

      COPY OBJ('/FLDR1/*.TXT') TODIR('/FLDR1/FLDR2/') TOCCSID(*OBJ) DTAFMT(*TEXT)

      it say:
      Character string not converted.
      Last edited by kali; December 30th, 2008, 05:58 AM.

      Comment


      • #4
        Re: IFS copy/delete file from a CLP

        How i do a CPY with option ADD with IFS files

        Comment


        • #5
          Re: IFS copy/delete file from a CLP

          Zombie thread --- Shoot for the head!

          Just what are you trying to do young man?
          All my answers were extracted from the "Big Dummy's Guide to the As400"
          and I take no responsibility for any of them.

          www.code400.com

          Comment


          • #6
            Re: IFS copy/delete file from a CLP

            Originally posted by scsr01 View Post
            How i do a CPY with option ADD with IFS files
            simple you can't...however you can copy the IFS file to a PF, add your records into the PF then copy back to the IFS
            I'm not anti-social, I just don't like people -Tommy Holden

            Comment

            sponsored links

            Collapse

            Working...
            X