IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL - Copy input to output


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jpsiddharth

New User


Joined: 21 Feb 2005
Posts: 7

PostPosted: Fri Jun 15, 2007 12:46 pm
Reply with quote

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
View user's profile Send private message
amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Fri Jun 15, 2007 1:11 pm
Reply with quote

Hi All,
I am also having almost same kind of requirement. Please help us friends.

Regards,

Amitava
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Jun 15, 2007 2:03 pm
Reply with quote

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
View user's profile Send private message
amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Fri Jun 15, 2007 5:31 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jun 15, 2007 5:35 pm
Reply with quote

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
View user's profile Send private message
ramfrom84

New User


Joined: 23 Aug 2006
Posts: 93
Location: chennai

PostPosted: Fri Jun 15, 2007 5:55 pm
Reply with quote

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)
.
.
.
/*

Code:
Back to top
View user's profile Send private message
amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Fri Jun 15, 2007 6:15 pm
Reply with quote

Hey Ram,
icon_smile.gif 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. icon_eek.gif icon_lol.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top