copy the maultiple files in Rexx



IBM's Command List programming language & Restructured Extended Executor

Re: copy the maultiple files in Rexx

Postby expat » Thu Jul 30, 2009 4:56 pm

ravindran.d wrote:hi expact,
all the files are diifernt record format i believe thats y i got a error like
WER171A CONCAT DS, LRECLS NE OR RECFMS DIFF
pls let us know i am correct

Why not leave out some important details like the RECFM being different from the original post.
Unless you give people ALL of the useful information they will waste time on an inappropriate solution to your problem.
If you work out the SORT cards required to do this, you can replace IEBCOPY with your SORT product and do it, or use the example given by Spock.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: copy the maultiple files in Rexx

Postby ravindran.d » Thu Jul 30, 2009 5:09 pm

hi spock,
Thnks for ur code .

i have some clarification in your code,

in that ddname i have given the input file file name. i.e( proj.test .ps)
this file having four files ..i have to open the four files and copy the records in each files and stored to output file .

Thn input_ddname wat should i should i give ?..
ravindran.d
 
Posts: 7
Joined: Wed Jul 29, 2009 11:28 am
Has thanked: 0 time
Been thanked: 0 time

Re: copy the maultiple files in Rexx

Postby dick scherrer » Thu Jul 30, 2009 10:33 pm

Hello,

It appears that the system in use invokes Syncsort to do the copy (hence the WER message(s).

in that ddname i have given the input file file name. i.e( proj.test .ps)
That is not a dd name.

If you are submitting a batch iebgener job, the input ddname would be sysut1. I don't believe files of unlike dcb attributes can be processed as a single input. . . :?
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

Re: copy the maultiple files in Rexx

Postby expat » Fri Jul 31, 2009 1:40 pm

I did play with this yesterday and used LMCOPY which sucessfully copied variable and fixed length records to the same output dataset.

This was only a first test, so will need more work on it.

Day off today, so no access to the code.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: copy the maultiple files in Rexx

Postby expat » Mon Aug 03, 2009 3:09 pm

ravindran.d wrote:hi thnks expact

i have tried wit ur code .. but i got a error like

FILE INFILES NOT FREED, IS NOT ALLOCATED
FILE SYSIN NOT FREED, IS NOT ALLOCATED
FILE SYSUT1 NOT FREED, IS NOT ALLOCATED
FILE SYSUT2 NOT FREED, IS NOT ALLOCATED
FILE SYSOUT NOT FREED, IS NOT ALLOCATED

pls let us knw ..i just copied ur code and run my system ..


Thnks in advance

regds
ravi

These are NOT error messages. I think that you will find that they are informational messages.

IKJ56247I

Notice the I on the end of the message - I is for INFORMATION not error. The next time that you need to post messages, always include the code with the message as it helps us help you.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post