Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Fetch the record based on condition ( Hex values )

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Fetch the record based on condition ( Hex values )
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: 1703
Location: Australia

PostPosted: Tue Mar 10, 2009 2:12 pm    Post subject:
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 Moderator


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

PostPosted: Tue Mar 10, 2009 8:45 pm    Post subject:
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    Post subject:
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    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 VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts LOW VALUES as a KEY juares castro DB2 10 Sat Apr 07, 2018 1:06 am
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us