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

Fetch the record based on condition ( Hex values )


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

New User


Joined: 24 Feb 2009
Posts: 14
Location: chennai

PostPosted: Tue Mar 10, 2009 1:49 pm
Reply with quote

Hi,

There is a Input File Lrecl-80, FB. If it has any low-value and space together I gotta fetch the record. Suppose 1st position having low-value , 2nd position having space. Else 2nd low-value and 3rd-space .. 49 -low-value and 50-space.. etc Then I gotta fetch the record.

Please help
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Mar 10, 2009 2:12 pm
Reply with quote

Hi,

I'm assuming X'00" is the low value, try this
Code:
//S1       EXEC PGM=ICEMAN                             
//SYSOUT   DD SYSOUT=*                                 
//SORTIN   DD DSN=INPUT-FILE,DISP=SHR                   
//SORTOUT  DD SYSOUT=*                                 
//SYSIN    DD    *                                     
  OPTION COPY                                           
  INCLUDE COND=(1,80,SS,EQ,X'4000',OR,                 
                1,80,SS,EQ,X'0040')                     
/*                                                     



Gerry
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: Tue Mar 10, 2009 8:45 pm
Reply with quote

Vaasuki,

From your description, it sounds like you want to include records that have X'0040' anywhere in the record (and not X'4000'), so the DFSORT job would be:

Code:

//S1    EXEC  PGM=SORT
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (FB/80)
//SORTOUT DD DSN=... output file (FB/80)
//SYSIN    DD    *
  OPTION COPY
  INCLUDE COND=(1,80,SS,EQ,X'0040')
/*
Back to top
View user's profile Send private message
vpalanivelu

New User


Joined: 24 Feb 2009
Posts: 14
Location: chennai

PostPosted: Wed Mar 11, 2009 11:46 am
Reply with quote

Frank,

you are exactly right . Dankq icon_cool.gif
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top