Copying particular record value

JES2/3, JCL, utilities.
Post Reply
DEVAPRIYA
Registered Member
Posts: 22
Joined: Fri Jul 18, 2014 5:30 pm

Copying particular record value

Post 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
Last edited by Anuj Dhawan on Fri Jul 18, 2014 8:57 pm, edited 1 time in total.
Reason: Moved the topic from "Polls and Ideas." It does not belong there.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Copying particular record value

Post by Robert Sample »

Route the SYSOUT to a data set, then you can read the data set in another program.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Copying particular record value

Post 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.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Copying particular record value

Post by zprogrammer »

1.Have a dataset for SYSOUT
2.Use SORT Or Program based on need
zprogrammer
DEVAPRIYA
Registered Member
Posts: 22
Joined: Fri Jul 18, 2014 5:30 pm

Re: Copying particular record value

Post by DEVAPRIYA »

Ok i got it thanks..
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Copying particular record value

Post 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.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
DEVAPRIYA
Registered Member
Posts: 22
Joined: Fri Jul 18, 2014 5:30 pm

Re: Copying particular record value

Post 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.:)
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Copying particular record value

Post by Anuj Dhawan »

Great - Thanks for posting back what has worked for you, appreciate that!

Have a good one, :)
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”