Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8614
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 Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us