Page 2 of 2

Re: copy the maultiple files in Rexx

PostPosted: Thu Jul 30, 2009 4:56 pm
by expat
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.

Re: copy the maultiple files in Rexx

PostPosted: Thu Jul 30, 2009 5:09 pm
by ravindran.d
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 ?..

Re: copy the maultiple files in Rexx

PostPosted: Thu Jul 30, 2009 10:33 pm
by dick scherrer
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. . . :?

Re: copy the maultiple files in Rexx

PostPosted: Fri Jul 31, 2009 1:40 pm
by expat
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.

Re: copy the maultiple files in Rexx

PostPosted: Mon Aug 03, 2009 3:09 pm
by expat
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.