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 Using ICETOOL, how we can seperate th... bshkris SYNCSORT 5 Tue May 09, 2017 8:33 pm
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts Group elements using ICETOOL Learncoholic DFSORT/ICETOOL 2 Fri Apr 14, 2017 11:01 am
No new posts The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm


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