Hi,
I want to copy a PS File which is having 100 records and this PS file should copy multiple times into another PS File say like 10 times.
So the output will be having 1000 records. Please anybody look into this. Thanks.
Regards,
Venky.
Copy one PS file into another PS file by Multiple times
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
Thanks William,
OUTFIL with REPEAT is working, but i have one more question. Please see below.
Input file:
01
02
03
Now for the above input I am using OUTFIL REPEAT = 3, I am getting the ouput as below.
Output:
01
01
01
02
02
02
03
03
03
but I want the output as below.
Output:
01
02
03
01
02
03
01
02
03
Can you please once again look into this. Thank you.
Regards,
Venky.
OUTFIL with REPEAT is working, but i have one more question. Please see below.
Input file:
01
02
03
Now for the above input I am using OUTFIL REPEAT = 3, I am getting the ouput as below.
Output:
01
01
01
02
02
02
03
03
03
but I want the output as below.
Output:
01
02
03
01
02
03
01
02
03
Can you please once again look into this. Thank you.
Regards,
Venky.
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
Well, what I'd do is, where you want to process your 10x file, concatenate the same DSN 10 times.
That will give you 10 copies of the data for whatever is processing it.
If you are desperate to have one DSN, you can do this by concatenating it 10 times (strictly nine concatenations to itself) on //SORTIN DD and use a simple OPTION copy to create your output DSN.
That will give you 10 copies of the data for whatever is processing it.
If you are desperate to have one DSN, you can do this by concatenating it 10 times (strictly nine concatenations to itself) on //SORTIN DD and use a simple OPTION copy to create your output DSN.
-
- Member
- Posts: 1
- Joined: Tue Jul 07, 2015 2:44 pm
- Contact:
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