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

SORT steps for EQUAL TO and NOT EQUAL TO Condition


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

New User


Joined: 03 May 2007
Posts: 27
Location: India

PostPosted: Wed May 20, 2009 4:07 pm
Reply with quote

Please let me know the Efficient SORT step for the requirement below

Sort TGM file

TGM-REC-TYPE EQUAL ‘5’ AND
TGM-ACC(1:5) NOT EQUAL ‘00005’

Thanks & regards,
Nivasaya
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 20, 2009 4:11 pm
Reply with quote

SORTIN -
RECFM=
LRECL=
Position and datatype of TGM-REC=
Position and datatype of TGM-ACC=
Back to top
View user's profile Send private message
nivasaya

New User


Joined: 03 May 2007
Posts: 27
Location: India

PostPosted: Wed May 20, 2009 5:19 pm
Reply with quote

Thanks Expat.

5 Similar SEQ files ( ORG - PS ) with REC FORMAT as FB
and i need to extract to 1 O/P file only for the conditions below

TGM-REC-TYPE EQUAL ‘5’ AND
TGM-ACC(1:5) NOT EQUAL ‘00005’

Thanks & Regards,
Nivasaya
Back to top
View user's profile Send private message
nivasaya

New User


Joined: 03 May 2007
Posts: 27
Location: India

PostPosted: Wed May 20, 2009 5:54 pm
Reply with quote

Code:
 
  SORT FIELDS = COPY
  INCLUDE COND=(1,1,CH,EQ,C’5’,
    7,5,CH,NE,C’00005’)


Will these be fine
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Wed May 20, 2009 8:25 pm
Reply with quote

Quote:
Will these be fine


No, but these DFSORT control statements would:

Code:

  SORT FIELDS=COPY                   
  INCLUDE COND=(1,1,CH,EQ,C'5',AND, 
    7,5,CH,NE,C'00005')             
Back to top
View user's profile Send private message
nivasaya

New User


Joined: 03 May 2007
Posts: 27
Location: India

PostPosted: Thu May 21, 2009 7:32 pm
Reply with quote

Thanks Frank.

Yes i got the " AND " condition as well as SORT FIELDS=COPY

Thank you very much for your timely support

Thanks & Regards,
Nivasaya
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top