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

INCLUDE question


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

New User


Joined: 15 Dec 2005
Posts: 72
Location: RALEIGH NC, USA

PostPosted: Thu Dec 22, 2005 8:54 pm
Reply with quote

I have a record that is 740 bytes long, the first 12 bytes always contains data, but the remaining 728 bytes may or may not contain data.
I'm trying to write an INCLUDE statement to say that "give me all the records that have 728 blank bytes starting from position 13, How do have enter 728 spaces in the EQ, C' ') comparison field ?

INCLUDE COND=(13,728,CH,EQ,C'? ')

Thanx in advance
Steve
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: Thu Dec 22, 2005 10:52 pm
Reply with quote

For an n-byte CH field, you can use C' ' (one blank) for n spaces in INCLUDE. DFSORT pad the constant out with blanks to the length of the field. However, the maximum length for a CH field used with INCLUDE is 256 bytes, so you have to use three CH fields to do what you want like this:

Code:

  INCLUDE FORMAT=CH,
    COND=(13,256,EQ,C' ',AND,
          269,256,EQ,C' ',AND,
          525,216,EQ,C' ')
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts panel creation question TSO/ISPF 12
Search our Forums:

Back to Top