Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
selectin records having blanks from 50th to 1000th position?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: selectin records having blanks from 50th to 1000th position?
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Aug 30, 2007 5:32 pm    Post subject:
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    Post subject: Reply to: selectin records having blanks from 50th to 1000th
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    Post subject:
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    Post subject: Reply to: selectin records having blanks from 50th to 1000th
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    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 MXG - Processing Compressed DB2 SMF r... vasanthz All Other Mainframe Topics 2 Thu May 10, 2018 12:47 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts can we hardcode a value in db2 load c... ram_vizag DB2 2 Wed Feb 28, 2018 11:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us