Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SEQNUM and RESTART

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
zh_lad

New User


Joined: 06 Jun 2009
Posts: 79
Location: UK

PostPosted: Tue Aug 25, 2015 8:17 pm    Post subject: SEQNUM and RESTART
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Tue Aug 25, 2015 9:23 pm    Post subject: Reply to: SEQNUM and RESTART
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

New User


Joined: 06 Jun 2009
Posts: 79
Location: UK

PostPosted: Wed Aug 26, 2015 2:22 pm    Post subject: Reply to: SEQNUM and RESTART
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Appending previous record SEQNUM valu... selvamsrinivasan85 DFSORT/ICETOOL 6 Fri Oct 16, 2015 2:09 pm
No new posts Restart Logic suraaj DB2 5 Fri Feb 27, 2015 8:47 pm
No new posts Question on JCL Restart trushant.w Mainframe Interview Questions 18 Mon Feb 24, 2014 6:49 pm
No new posts How to restart a step in Proc called ... Rohit_Soni JCL & VSAM 4 Mon Feb 17, 2014 3:18 pm
No new posts SEQNUM with, only, break on key tuxama DFSORT/ICETOOL 9 Fri Nov 15, 2013 5:03 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us