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
 

 

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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us