A couple more things. You're not actually doing any "incrementing". Did you go with the idea of maintaining a run-sequence control file separately?
Also, if you are able to identify the header, then you'd not need the sequence-number generation for each record.
Incrementing a sequence number in Header for each Job Run
-
- Posts: 16
- Joined: Thu Dec 06, 2012 2:30 pm
- Skillset: COBOL, PL1, IMS DB-DC, JCL
- Referer: Internet
Re: Incrementing a sequence number in Header for each Job Ru
Hi Billy, yea for some reasons business has asked us to maintain 15 digit seq.
Also for SYMNAMES I created a flat file with LRECL=80, RECFM=FB instead of using a temp data set.
Also, with the tem dataset name changed to &&temp* the job worked fine
Also for SYMNAMES I created a flat file with LRECL=80, RECFM=FB instead of using a temp data set.
Also, with the tem dataset name changed to &&temp* the job worked fine

-
- Global moderator
- Posts: 3805
- Joined: Tue Jan 25, 2011 12:02 am
- Skillset: Easytrieve Plus, Cobol, Utilities, that sort of stuff
- Referer: Google
Re: Incrementing a sequence number in Header for each Job Ru
Up to 999,999,999,999,999 records? of 536 bytes each?
OK, it is really, really, going to help if you can identify the header without using the sequence-number approach, if you have a file even remotely approaching that size.
It would frankly be "nuts" to pass through some huge amount of data, just to update the sequence number for such a file.
I think you need to get some clarification. Find out the expected initial size of the file, dummy up some records, find how long it takes, take file growth into account and do some estimates for one year, two years, whatever, then go back to the requirement-giver and see if they are happy.
OK, it is really, really, going to help if you can identify the header without using the sequence-number approach, if you have a file even remotely approaching that size.
It would frankly be "nuts" to pass through some huge amount of data, just to update the sequence number for such a file.
I think you need to get some clarification. Find out the expected initial size of the file, dummy up some records, find how long it takes, take file growth into account and do some estimates for one year, two years, whatever, then go back to the requirement-giver and see if they are happy.
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Incrementing a sequence number in Header for each Job Ru
As the sort product in question is SYNCSORT (WER messages)I have moved the topic to that forum.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
Re: Incrementing a sequence number in Header for each Job Ru
Hi,
I am using the same JCL for incrementing sequence numbers. I am facing the same issue as mentioned by you:
This job is going thru fine but is not appending the sequence number in File 2.
If you could kindly assist me where I am going wrong.
Can you please tell, how this was corrected?
I am using the same JCL for incrementing sequence numbers. I am facing the same issue as mentioned by you:
This job is going thru fine but is not appending the sequence number in File 2.
If you could kindly assist me where I am going wrong.
Can you please tell, how this was corrected?
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 1248
-
by willy jensen
View the latest post
Sat Sep 04, 2021 12:51 am
-
-
compare number lines of two dataset
by samb01 » Wed Nov 13, 2024 8:46 pm » in DFSORT/ICETOOL/ICEGENER - 6
- 2113
-
by sergeyken
View the latest post
Fri Nov 15, 2024 12:41 pm
-