ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Qshell error in CL pgm

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

  • Qshell error in CL pgm

    I was trying to execute the following command to write to a file from CL...

    QSH CMD('echo "Testdta" >> /qsys.lib/mylib.lib/filftp.file/filftp.mbr')


    and i get the following error

    qsh: 001-0055 Error found creating file /qsys.lib/mylib.lib/filftp.file/filft
    p.mbr. Operation not supported.
    Press ENTER to end terminal session.


    what does this error mean..does 'operation not supported' mean i do not have a certain authority or something else...?

    thanks for any help

  • #2
    Re: Qshell error in CL pgm

    Im gonna say yes cause this worked for me

    PHP Code:
    QSH CMD('echo "Testdta" >> /qsys.lib/jamielib.lib/source.file/junk.mbr'
    it was a source file and I had to create the member.

    jamie
    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


    • #3
      Re: Qshell error in CL pgm

      jamie, was your 'source' file a physical file? or was it something like a source physical file (QRPGLESRC..etc)

      Comment


      • #4
        Re: Qshell error in CL pgm

        i see what you are saying...

        it writes to my source file too...

        but my intention was to write records into a physical file filftp.file

        and it seems to be writing into the source ...

        Comment


        • #5
          Re: Qshell error in CL pgm

          it was like QRPGLESRC crtsrcpf jamielib/source rcdlen(112) mbr(JUNK)
          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: Qshell error in CL pgm

            if i create the file first

            PHP Code:
            CRTPF FILE(JAMIELIB/JUNKRCDLEN(100
            then run

            PHP Code:
            QSH CMD('echo "Testdta" >> /qsys.lib/jamielib.lib/source.file/junk.mbr'
            it works here
            jamie
            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


            • #7
              Re: Qshell error in CL pgm

              nice..works here too...thanks jamie...

              i panicked for nothing i guess..

              Comment


              • #8
                Re: Qshell error in CL pgm

                Its friday no need to panic unless you know how long my grass is and what Ill be doing with it on Saturday


                take care
                jamie
                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

                Working...
                X