Not true: With TERM TIMESTAMP ON the messages written to the console (and the SPOOL CON START) get the timestamp, not the response trapped by PIPE, EXECIO and co.
This will do: '|CP', /* Execute command */ '| insert /'time()'/', '|>>' today 'INDUSER A' 2009/10/15 Schuh, Richard <rsc...@visa.com> > If you CP TERM TIMESTMP ON in your PROFILE, all lines will be timestamped > without having to modify your program. > > Regards, > Richard Schuh > > > > > -----Original Message----- > > From: The IBM z/VM Operating System > > [mailto:ib...@listserv.uark.edu] On Behalf Of Mary Zervos > > Sent: Thursday, October 15, 2009 8:10 AM > > To: IBMVM@LISTSERV.UARK.EDU > > Subject: Re: Which vm software to use? > > > > 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 <zer...@binghamton.edu > > > <mailto:zer...@binghamton.edu>> > > > > > > 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 > > > -- Kris Buelens, IBM Belgium, VM customer support