Posted: Fri Jun 23, 2017 7:23 am Post subject: Copy a number of records depending on the number and type
Hi All,
Please spare me for making any mistake in my question.
I have to copy first thousand record from one file to another file depending on a condition
Record length for the file is 80,
File structure is as follows
then I need to copy till 12345 ABCDED GHIJKLMNOPQR333333333333333
Basically If I cannot all the records for the (1,5). I need to copy till the last key.
I want to do this by a jcl. _________________ Kanishk Nandwana
Mainframe Developer
Joined: 26 Nov 2002 Posts: 12358 Topics: 75 Location: San Jose
Posted: Fri Jun 23, 2017 10:25 am Post subject:
nandwana.kanishk886,
It is not clear as to what you want. Do you want to copy ALL the records till you find the key '22222' or do you want copy the first 999 records as 1000th record is '2222' ?
I am guessing that it is the first case and here is a JCL which will give you the desired results.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum