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 add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts Need all records with high key kalidasvs SYNCSORT 15 Fri Feb 09, 2018 10:38 pm
No new posts Why is SORT rearranging records that ... cschablow DFSORT/ICETOOL 4 Wed Jan 24, 2018 10:14 pm

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