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
 

 

how to check the nagative values in the sort ........

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

New User


Joined: 05 Jan 2006
Posts: 44

PostPosted: Tue Apr 25, 2006 9:34 pm    Post subject: how to check the nagative values in the sort ........
Reply with quote

Hi Friends ,

I have a query in sorting . i have input file like

Code:

01   rama             -2000
02   krishna          -2500
03   kiran            -2500
04   tan               6000
05   arun             -2500


can any one help me how to write the include cond to retrive the values equal to -2500 .

#2 . The other query is where do we use the format parameter's FI , FL .

I am aware of ch , pd , zd , AC , But not above . If any one give the example code it would be a great help to me .


Thanks in advance ,
Venkata .
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 Apr 25, 2006 9:48 pm    Post subject:
Reply with quote

Quote:
can any one help me how to write the include cond to retrive the values equal to -2500.


You can use this INCLUDE statement:

Code:

   INCLUDE COND=(23,5,FS,EQ,-2500)


Quote:
where do we use the format parameter's FI , FL


FI is the format for signed fixed-point data. This is similar to BI, but whereas BI only allows positive values, FI allows positive and negative values. Negative values are in 2's complement form.

Example: X'0001' = 1, X'FFFF' = -1

You would use FI when you have signed fixed-point data values.

FL is the format for signed hexadecimal floating-point data. The value has a sign, a characteristic and a fraction.

You would use FL when you have signed hexadecimal floating-point data.

For more information on the various formats you can use with DFSORT, see Appendix C of "z/OS DFSORT Application Programming Guide". You can access it from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html

I'd suggest using the PDF version as it's formatted better.
Back to top
View user's profile Send private message
hariavinash

New User


Joined: 04 Jan 2006
Posts: 64

PostPosted: Tue Apr 25, 2006 9:54 pm    Post subject:
Reply with quote

Code:

//STEP000  EXEC PGM=SORT
//SORTIN   DD  *
;LJASD   +9939
;LJASD   -9939
;LJASD   +9933
;LJASD   -9934
;LJASD   +9935
//SORTOUT  DD  SYSOUT=*
//SYSIN    DD  *
  SORT FIELDS=COPY
  INCLUDE COND=(10,1,CH,EQ,X'60')
//SYSOUT   DD  SYSOUT=*
//SYSUDUMP DD  SYSOUT=*
//*
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 Apr 25, 2006 10:50 pm    Post subject:
Reply with quote

hariavinash,

The request was for records with -2500. Your "solution" includes any record with '-' in position 10. That would include the -2000 record as well as the -2500 records.

Please test your jobs before you post them.
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 BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 1 Tue Jul 25, 2017 12:12 am
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