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

ICETOOL to bring all records from col 72-80


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

New User


Joined: 26 Nov 2008
Posts: 7
Location: Brazil

PostPosted: Wed Sep 16, 2009 7:50 pm
Reply with quote

He everyone, I'm using the following code to try to extract all the records that are on COL72 through COL80 but instead, it shows me the whole File.
Any Ideas ?

Code:
//ICECOMPR EXEC  PGM=ICETOOL                                 
//INDD     DD DSN=TEST.TEXT,DISP=SHR,DCB=(RECFM=FB)
//OUTDD    DD SYSOUT=*                                       
//TOOLMSG  DD SYSOUT=*                                       
//TOOLIN   DD *                                               
  COPY FROM(INDD) TO(OUTDD) USING(CTL1)                       
/*                                                           
//CTL1CNTL DD *                                               
  INCLUDE COND=(72,9,CH,NE,C' ')                             
/*                                                           
//DFSMSG   DD SYSOUT=*                                       
//SYSOUT   DD SYSOUT=*               
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Wed Sep 16, 2009 8:52 pm
Reply with quote

Hi,

Is there any filter condition?

Code:


INCLUDE COND=(72,9,CH,NE,C' ')   



will get the records which are not equal to space
Back to top
View user's profile Send private message
ehrocha

New User


Joined: 26 Nov 2008
Posts: 7
Location: Brazil

PostPosted: Wed Sep 16, 2009 9:12 pm
Reply with quote

Not at all, I want to list anything that appears on columns 72-80
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Sep 16, 2009 9:50 pm
Reply with quote

When I run your job with this input:

Code:

RECORD 1 NO                                                             
RECORD 2 YES                                                           Y
RECORD 3 YES                                                                   YY
RECORD 4 NO                                                             


I get this output:

Code:

RECORD 2 YES                                                           Y
RECORD 3 YES                                                                   YY


So I don't understand what you mean by "it shows me the whole File".

Did you just want to list out columns 72-80 for the selected records? If so, you need to add:

Code:

    OUTREC BUILD=(72,9)


If you want something else, you need to explain in more detail and show an example of your input records, expected output records and actual output records.
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 Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Shift left VB record without x00 endi... DFSORT/ICETOOL 11
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
Search our Forums:

Back to Top