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
 
How to check negative and positive values in a flat file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Fri May 18, 2007 10:41 pm    Post subject: How to check negative and positive values in a flat file
Reply with quote

The requirement is i have to count all the negative and positive values found for a particular field in a flat file.

The problem is this, the particular field is defined in my file as a packed decimal field, then how can i search for the -ve or +ve values in that.

Is there any method where i can put all the negative values in a separate file and all the positive values in a different file using DFSORT/SORT.
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sat May 19, 2007 12:32 am    Post subject:
Reply with quote

You can have multiple OUTFIL records each with a different output and a different INCLUDE/OMIT condition.....
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat May 19, 2007 3:13 am    Post subject:
Reply with quote

Hello,

Please describe the output you want from this when it is working.
Back to top
View user's profile Send private message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Sat May 19, 2007 11:52 am    Post subject:
Reply with quote

Can you write its proper syntax, so that i can check in my system.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sat May 19, 2007 12:24 pm    Post subject:
Reply with quote

Do you need a pointer to a Sort Manual?
Back to top
View user's profile Send private message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Sat May 19, 2007 3:31 pm    Post subject:
Reply with quote

Hi,

I have tried the SYNCSORT and its working. I have divided the output in four files. In the file the two fields are starting from 100 and 107 respectively.

In SYSIN card, i have coded like

OUTFIL FILES=1,
INCLUDE=(100,7,PD,LT,0,AND,107,7,PD,LT,0)
OUTFIL FILES=2,
INCLUDE=(100,7,PD,GT,0,AND,107,7,PD,GT,0)
OUTFIL FILES=3,
INCLUDE=(100,7,PD,LT,0,AND,107,7,PD,GT,0)
OUTFIL FILES=4,
INCLUDE=(100,7,PD,GT,0,AND,107,7,PD,LT,0)
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. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts LOW VALUES as a KEY juares castro DB2 10 Sat Apr 07, 2018 1:06 am
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am

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