Ucopy using JCL
Moderators: Frank Yaeger, DikDude, Moderator Group
Ucopy using JCL
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.
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.
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..
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..
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
Nic
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page