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
 

 

INCLUDE question

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: INCLUDE question
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 Moderator


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

PostPosted: Thu Dec 22, 2005 10:52 pm    Post subject:
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    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 Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
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