Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL - Copy input to output

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL - Copy input to output
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Fri Jun 15, 2007 2:03 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jun 15, 2007 5:35 pm    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us