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
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 1 Sat Aug 19, 2017 2:33 pm
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm


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