ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Resequence member

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

  • Resequence member

    Hello

    can I Resequence a member from CL ? not using the online 'save' UI ?


    thanks !!!

  • #2
    Re: Resequence member

    Sure. There are various ways. Here's one that could be easily generalized:
    Code:
    CPYTOSTMF  FROMMBR('/qsys.lib/mylib.lib/qclsrc.file/reseq.mbr')
               TOSTMF('/tmp/reseq.cl')
               STMFOPT(*REPLACE) STMFCODPAG(*PCASCII)
    CPYFRMSTMF FROMSTMF('/tmp/reseq.cl')
               TOMBR('/qsys.lib/mylib.lib/qclsrc.file/reseq.mbr')
               MBROPT(*REPLACE) STMFCODPAG(*STMF)
    The first command copies the source statements from a QCLSRC source member named RESEQ into a streamfile. The second command copies the source statements back into the member. After the copy completes, the resequencing is finished. Two quick commands, and done.

    Change QCLSRC to any source file name, and change RESEQ to any member name. And be sure to change MYLIB to your source library.

    I can imagine that numerous other suggestions can be posted.
    Tom

    There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

    Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

    Comment


    • #3
      Re: Resequence member

      Thank you very much

      Comment


      • #4
        Re: Resequence member

        You're welcome.
        Tom

        There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

        Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

        Comment

        Working...
        X