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

selectin records having blanks from 50th to 1000th position?


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

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Thu Aug 30, 2007 4:34 pm
Reply with quote

Hi,

I have to select some records from a file of LRECL 1000 based on the following condition.

select only the records having blanks from 50th position to 1000th position.
Could you tell me how to do this.
Back to top
View user's profile Send private message
SCANDY

New User


Joined: 08 Aug 2007
Posts: 10
Location: Dalian, China

PostPosted: Thu Aug 30, 2007 5:28 pm
Reply with quote

You can use this sort card:
Code:
//SYSIN DD *
  INCLUDE COND=(50,951,SS,EQ,C' ')
//
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Aug 30, 2007 5:32 pm
Reply with quote

I couldn't find the max characters allowed for the total INCLUDE/OMIT statement, but the max for a single Relational Condition Format of character is 256.... Maybe stringing several together might work....
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Thu Aug 30, 2007 5:43 pm
Reply with quote

Hi Scandy,


Code:
//SYSIN DD *
INCLUDE COND=(50,951,SS,EQ,C' ')
//


This won't work for me. Because i need to select records having blanks in all the position between 50 and 1000.
Any more idea?
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Aug 30, 2007 5:54 pm
Reply with quote

senjay
Check this
Code:
//SYSIN DD *
       SORT FIELDS=COPY
       INCLUDE COND=(50,951,CH,EQ,C' ')
//
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Thu Aug 30, 2007 6:55 pm
Reply with quote

Thanks.

it's working if i include multiple INCLUDE with 256 as length.
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 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top