View previous topic :: View next topic
|
Author |
Message |
jpsiddharth
New User
Joined: 21 Feb 2005 Posts: 7
|
|
|
|
Hi All,
I have faced a challenging problem recently. I am having 8 input files as - A, B, C and so on and 8 output files as - A1, B1, C1 and so on. I want to copy the input files to output files in a manner - A will go to A1, B will go to B1 and so on. I want to do this thru a single JCL step. I know it can be done by IDCAMS but I don't want to use that. My mainframe version does not support ICETOOL. Please let me know how can I solve the problem? It will be great help if you can provide me a sample JCL step.
N.B - The inputs and outputs are simple fixed blocked flat-files not VSAM or any other type.
Thanks,
Siddharth :roll: :P |
|
Back to top |
|
|
amitava Warnings : 1 Active User
Joined: 30 Oct 2005 Posts: 186 Location: India
|
|
|
|
Hi All,
I am also having almost same kind of requirement. Please help us friends.
Regards,
Amitava |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Siddharth,
Quote: |
I know it can be done by IDCAMS but I don't want to use that |
Why cant? Is there any specific reason behind this. |
|
Back to top |
|
|
amitava Warnings : 1 Active User
Joined: 30 Oct 2005 Posts: 186 Location: India
|
|
|
|
Hi Murali,
May be Siddharth does not want to use IDCAMS as it is mainly used for VSAM processing and so. In general, its true that IDCAMS has been designed for VSAM processing not for flat-files processing. May be that's the reason Siddharth is not ready to use IDCAMS. What do you say Siddharth? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
I know it can be done by IDCAMS but I don't want to use that. |
Why do you not want to use IDCAMS ?
You can use IEBGENER, possibly in one step, or maybe SYNCTOOL has this capability too. |
|
Back to top |
|
|
ramfrom84
New User
Joined: 23 Aug 2006 Posts: 93 Location: chennai
|
|
|
|
Hi,
This can be done using Sync Tool , Below is the sample JCL.
//R010 EXEC PGM=SYNCTOOL,
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IA DD File Name,
//IB DD File Name,
....
//IA1 DD DSN=File Name
//IB1 DD DSN=File Name
//TOOLIN DD *
COPY FROM(IA) TO(IA1)
COPY FROM(IB) TO(IB1)
.
.
.
/*
|
|
Back to top |
|
|
amitava Warnings : 1 Active User
Joined: 30 Oct 2005 Posts: 186 Location: India
|
|
|
|
Hey Ram,
Thanks a lot man!!! It worked and another point is that I found it is taking less time than the job having IDCAMS in it to copy the input datasets to output. |
|
Back to top |
|
|
|