ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Cfghttpsch

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

  • Cfghttpsch

    Hi. I was planning to use CFGHTTPSCH to build a list of files in an IFS folder but it would appear it has been removed from V7R1. Does anyone know another way of achieving this?

  • #2
    A list of files in /home/myhomedir can be created with:
    Code:
    QSH CMD( 'ls /home/myhomedir >/home/myhomedir/mylists/flist.txt' )
    The list would be written into /home/myhomedir/mylists/flist.txt.
    The resulting streamfile can be processed as is or copied into a PF member. Or you can create a basic PF and list directly into it:
    Code:
    CRTPF FILE( mylib/FLIST ) RCDLEN(128)
    QSH CMD( 'ls /home/myhomedir >/QSYS.LIB/mylib.LIB/flist.file/flist.mbr' )
    Pretty simple. Should only take minimal experimentation. Other methods are possible.
    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