Ucopy using JCL

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
mahendrai
Member
Posts: 3
Joined: Tue Sep 17, 2013 11:26 pm

Ucopy using JCL

Post by mahendrai » Tue Sep 17, 2013 11:28 pm

Hi All - Need help in ucopy

i am doing the ucopy jcl.. that is copying file from source to destination..

In the source location at each 1hr i will be getting one txt file that is for eg : txtFile.txt.. i need to copy txtFile.txt from source location and rename as txtFile_01_Date.txt to destination location.. again after 1hr i will be getting another txtFile.txt in source location which need to be copied to destination location as txtFile_02_Date.txt.. in the same day i will be getting 5 txt will the same name in source location which i need to copy to destination location with txtFile_01_Date.txt, txtFile_02_Date.txt so on.. please help me in JCL for above condition.

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Tue Sep 17, 2013 11:50 pm

You need to provide more/better information for us to be able to help.

Where is the data gong to be (mainframe or some other poatform)?

Where is it to be copied to?

What is ucopy - thei is not a term with which i'm familiar.
Have a good one

mahendrai
Member
Posts: 3
Joined: Tue Sep 17, 2013 11:26 pm

Post by mahendrai » Wed Sep 18, 2013 12:01 am

I need to copy similar .txt file from source location to destination location and rename the copied file..

Eg : SourceLocation/Customer.txt to DestinationLocation/Customer_01_18092013.txt

After 1hr i will be getting another Customer.txt in the same SourceLocation which need to be copied to destination location again
Eg : SourceLoation/Customer.txt to DestinationLocation/Customer_02_18092013.txt

Since In coming file Customer.txt is not fixed, depending on customer.txt coming per day in the source location we need to copy to destination location with _01_date.txt, _02_date.txt so on..

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Wed Sep 18, 2013 12:22 am

This sounds like a Windows or *nix request. The file names shown are not valid mainframe file names.

We support mainframe topics here.

If these are non-mainframe sources and destinations, i do not know of a way to do this with JCL.
Have a good one

mahendrai
Member
Posts: 3
Joined: Tue Sep 17, 2013 11:26 pm

Post by mahendrai » Wed Sep 18, 2013 12:31 am

SourceLocation is Mainframe source and destination location is output path

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Wed Sep 18, 2013 1:41 am

If the mainframe is the source, how are there invalid mainframe dataset names?

Until you more clearly explaikn what you have, we will be hard-pressed to help.
Have a good one

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Wed Sep 18, 2013 1:41 am

If the mainframe is the source, how are there invalid mainframe dataset names?

Until you more clearly explaikn what you have, we will be hard-pressed to help.
Have a good one

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Fri Sep 20, 2013 1:25 am

Your same topic posted on another forum was locked because you did not provide the information required to help you. This topic was posted with what appears to be exactly the same text so you are going to be asked the same questions and, unless you give the required answers, you are not going to get anywhere here, either.
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri Sep 20, 2013 1:33 am

Yes, you need to look at your locked topic and reply here to the questons asked there.
Have a good one

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others