How to copy file name in another file



IBM's Command List programming language & Restructured Extended Executor

How to copy file name in another file

Postby coolpinky » Sun Jun 09, 2013 1:24 pm

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.
coolpinky
 
Posts: 11
Joined: Fri Jun 07, 2013 4:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to copy file name in another file

Postby NicC » Sun Jun 09, 2013 3:28 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How to copy file name in another file

Postby dick scherrer » Mon Jun 10, 2013 6:51 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post