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
 

 

ICETOOL question

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

New User


Joined: 03 Apr 2008
Posts: 82
Location: United States

PostPosted: Tue Aug 10, 2010 7:23 pm    Post subject: ICETOOL question
Reply with quote

I have an input file of 381 LRECL. Some of which has got charcters 'PR" in the 1st position of the record. Some of them dont have it.

I want to have the output to take on the record with 10th ocurence of 'PR" at 1st position till before 25th occurrence of 'PR' on 1st poition.

i.e if input rec

PRkefhwfkhwhlhwhwf....
AB..........
CD........
PR........
........
......
PRporeefwjffwfl (10th occurrence of PR in 1st pos, i want from this in output)
AB..........
CD........
PR........
........
......
RTljwefhwlhwf ( i want till this in output)
PRporeefwjffwfl (25th occurrence of PR in 1st pos)
.........
.........

Please guide me.
Back to top
View user's profile Send private message

sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 578
Location: USA

PostPosted: Tue Aug 10, 2010 8:04 pm    Post subject:
Reply with quote

CICS fan,
Why do you call it ICETOOL question?

Try this

Code:
  INREC IFTHEN=(WHEN=GROUP,BEGIN=(1,2,CH,EQ,C'PR'),PUSH=(382:ID=8)) 
  SORT FIELDS=COPY                                                   
  OUTFIL INCLUDE=(382,8,ZD,GE,10,AND,382,8,ZD,LT,25),BUILD=(1,381)   



Thanks,
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 How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm
No new posts Icetool or Joinkeys example to compar... ishant chauhan DFSORT/ICETOOL 21 Sat Aug 20, 2016 2:40 am
No new posts Fault Analyzer - listings question. egrove IBM Tools 4 Thu Aug 11, 2016 5:31 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm


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