Ron,

It is about time that we set some guide lines. Your topic titles with the
product/program name will not help as it is too broad and does not help
with future searches. A More appropriate  title for this question would "
How do I insert a increasing sequence number when the key changes?"

Now coming to your question it is one of the simplest task. Look up the
parm SEQNUM  with RESTART

You can use SEQNUM,m,f to create sequence numbers of various lengths in
various formats. You can use START=j to start the sequence numbers at j
instead of 1. You can use INCR=i to increment each sequence number by i
instead of 1. You can use RESTART=(p,m) to start the sequence number at the
starting value again each time the value in a particular field changes.

Documentation link

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.iceg200/ice2cg_Inserting_sequence_numbers.htm

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest
reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial,
with lots of examples, that will show you how to use DFSORT, DFSORT's
ICETOOL and DFSORT Symbols. You can access it online, along with all of the
other DFSORT books, from:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080


Thanks,
Kolusu

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to