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
 

 

SORT steps for EQUAL TO and NOT EQUAL TO Condition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: SORT steps for EQUAL TO and NOT EQUAL TO Condition
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: 8593
Location: Back in jolly old England

PostPosted: Wed May 20, 2009 4:11 pm    Post subject:
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    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Wed May 20, 2009 8:25 pm    Post subject:
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    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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