View previous topic :: View next topic
|
Author |
Message |
zh_lad
Active User
Joined: 06 Jun 2009 Posts: 115 Location: UK
|
|
|
|
Hi,
I want to add SEQNUM, which is n=3, fs=ZD, START=1,INCR=1. I want to restart when SEQNUM has reached 26.
After reading, it seems I can not use RESTART=(p,m) or RESTART=(%nn).
Thanks,
zh_lad |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Code: |
OPTION COPY
INREC IFTHEN=(WHEN=GROUP,RECORDS=26,PUSH=(11:SEQ=2)) |
Defines a group to consist of 26 records, and PUSHes a sequence number to each record of the group. Once 26 records are processed, it becomes a new group (you could use ID on the PUSH if you want to see that in action) and starts again from the first record in the group (so SEQ gives you a 01, in this case). |
|
Back to top |
|
|
zh_lad
Active User
Joined: 06 Jun 2009 Posts: 115 Location: UK
|
|
|
|
Thank you very much. I wasn't aware GROUP has RECORDS feature as well. I have learnt something new today. Cheers! |
|
Back to top |
|
|
|