Page 1 of 1

Copying particular record value

Posted: Fri Jul 18, 2014 8:24 pm
by DEVAPRIYA
Hi

I am z/os beginner programmer I need to create a program that to read a particular data value in certain program sysout and that value need to be copied in another data set.(row value for that record will be different based on sysout)

Any one pls provide me an idea for this..is this possible to do it

Please suggest,thanks in advance

Re: Copying particular record value

Posted: Fri Jul 18, 2014 8:49 pm
by Robert Sample
Route the SYSOUT to a data set, then you can read the data set in another program.

Re: Copying particular record value

Posted: Fri Jul 18, 2014 9:33 pm
by Anuj Dhawan
If REXX can be your choice then we can also work with SDSF REXX also. If you explain a bit more about the situation at your end - it might help us to help you.

Re: Copying particular record value

Posted: Sat Jul 19, 2014 12:35 am
by zprogrammer
1.Have a dataset for SYSOUT
2.Use SORT Or Program based on need

Re: Copying particular record value

Posted: Mon Jul 21, 2014 3:34 pm
by DEVAPRIYA
Ok i got it thanks..

Re: Copying particular record value

Posted: Mon Jul 21, 2014 4:35 pm
by Anuj Dhawan
Thanks for the feedback, appreciate that. If your time permits please post back the final solution you use - it might help someone later.

Re: Copying particular record value

Posted: Tue Jul 22, 2014 5:40 am
by DEVAPRIYA
i have routed my sysout to DSN by mentioning SYSOUT=dsn then i used the sort statement to select the particular value from the record and copied to another dataset.:)

Re: Copying particular record value

Posted: Tue Jul 22, 2014 10:13 am
by Anuj Dhawan
Great - Thanks for posting back what has worked for you, appreciate that!

Have a good one, :)