IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SEQNUM and RESTART


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
zh_lad

Active User


Joined: 06 Jun 2009
Posts: 115
Location: UK

PostPosted: Tue Aug 25, 2015 8:17 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Aug 25, 2015 9:23 pm
Reply with quote

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
View user's profile Send private message
zh_lad

Active User


Joined: 06 Jun 2009
Posts: 115
Location: UK

PostPosted: Wed Aug 26, 2015 2:22 pm
Reply with quote

Thank you very much. I wasn't aware GROUP has RECORDS feature as well. I have learnt something new today. Cheers!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts IMS Restart Failure IMS DB/DC 4
No new posts Creating additional seqnum/Literal wh... DFSORT/ICETOOL 4
No new posts Restart logic by using cursor name in... DB2 1
No new posts SEQNUM with TRA=ETOA in OUTREC SYNCSORT 5
No new posts Do we need to restart DB2 Z/OS for DA... DB2 0
Search our Forums:

Back to Top