Hi All,
I have one dataset named G2SZ00AT.DUMMY.TEST1. It has content as G2SZ00AT.MURTHY.TEST(only one line). I need to write a jcl to read the dataset G2SZ00AT.DUMMY.TEST1 and make the content "G2SZ00AT.MURTHY.TEST" as name to the one newly created dataset. How can i do that?
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
Your question is really rare, if I've correctly understand.
You have a file
G2SZ00AT.DUMMY.TEST1
that has within the record
G2SZ00AT.MURTHY.TEST
that's the name of a existing file.
You want to copy the second file to a third?
If I'm correct:
I think that in Rexx you can do this(I think that other method are available).
Do you need a source to do this?
Which name will have the output of this copy?
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
Quote:
I have one dataset named G2SZ00AT.DUMMY.TEST1. It has content as G2SZ00AT.MURTHY.TEST(only one line). I need to write a jcl to read the dataset G2SZ00AT.DUMMY.TEST1 and make the content "G2SZ00AT.MURTHY.TEST" as name to the one newly created dataset. How can i do that?
As per his query ,I think the output file name should be created as G2SZ00AT.MURTHY.TEST.
My understanding is this:A dataset G2SZ00AT.DUMMY.TEST1 contains one and only record which is G2SZ00AT.MURTHY.TEST.This record should be created as a dataset.