Page 1 of 1

How to copy file name in another file

PostPosted: Sun Jun 09, 2013 1:24 pm
by coolpinky
Hi..

I am allocating a new dataset through rexx using the command.

ADDRESS TSO "ALLOCATE FI(ABCD) DA('HLQ.R||File1(I))') SHR REUSE

Now I need to copy these file name in another file.How do i do that..I basically need to gater name of all files while are allocated through Rexx.

Re: How to copy file name in another file

PostPosted: Sun Jun 09, 2013 3:28 pm
by NicC
Maybe an example of what you are trying to do? I think you need to assign the file name to a variable and then you can write that variable to a file (and use it for the alloc statement but I am unsure as to what it is you are really trying to do.

Re: How to copy file name in another file

PostPosted: Mon Jun 10, 2013 6:51 am
by dick scherrer
Hello,

This sounds like it is part of your other topic . . .

If you explain what you are actually trying to accomplish, someone might be able to offer more useful suggestions.

You need to show some more realistic input data and the output(s) you want from this data.