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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am


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