Hello Kris,

I was wondering if you could help us a bit more with your "Pipe" knowledge.

We've used a portion of your idea below to obtain the information our professor needs (see our exec that I've attached). The professor now wants (asap of course) to add a timestamp (CP Q T) for *each* ind user command. Could you possibly look at our exec and add the additional code we need. We would truly appreciate your time and effort doing this!
Thank you Kris.

Mary Zervos
VM Systems Programmer
Binghamton University
607-777-6158


Kris Buelens wrote:
Supposing a file "STUDENT USERIDS' contains the userids of all students, you could create a new virtual machine with this as its PROFILE EXEC:

/* */
address command
today=date('S')
do forever
   if date('S')<>today then call NewDay
   call collect
   'CP SLEEP 60 MIN'
   'CP SLEEP 60 MIN'
   'CP SLEEP 60 MIN'
   'CP SLEEP 60 MIN'
end

NewDay:
 'EXEC SENDFILE' today 'INDUSER A TO professor'
 if rc=0 then 'ERASE' today 'INDUSER A'
 today=date('S')
return
Collect:
 'PIPE < STUDENT USERIDS', /* Read list of students */
    '|SPLIT',              /* One userid per record */
    '|INSERT /IND USER /', /* Construct IND USER xxx command */
    '|CP',                 /* Execute command */
    '|>>' today 'INDUSER A'
return
2009/6/24 Mary Zervos <[email protected] <mailto:[email protected]>>

     Hello everyone,

    A professor here would like an "ind user studentname" taken every
    4 hours of his 80 students, with a report sent to him once a week.
     My question is, which vm software to use and how to collect the
    data in a file to send the professor.  The professor will use his
    own program to extract the data he needs from the file.

    Thanks for any help.

    Mary Zervos
    VM Systems Programmer
    Binghamton University




--
Kris Buelens,
IBM Belgium, VM customer support

Reply via email to