Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads

 MAINFRAME - TIP OF THE DAY : programming pearls - Good judgement comes from experience, and experience comes from bad judgement.

 Web mainframegurukul.com

Programmers Voted for below topics.      Please Vote for good Posts. Votes Salutes
Author Message

Member

Joined: 11 May 2012
Posts: 3

 0 salutes

 Posted: Fri May 11, 2012 9:25 am    Post subject: Sorting using DFSORT I have a requirement to sort the data which is in decimal and take a maximum value in that. Example: 3045.45666 3.45655 324.554547 3334.4455 3333.44578 3214.224574 4578.1124578 Now, how do I sort this? I have tried different ways using DFSORT but didn't get the expected result. Any help would be appreciated_________________Regards, San
 <-- Click on right mark icon. If this post answer your question.

Active Member

Joined: 24 Jul 2011
Posts: 651
Location: Down on the pig farm

 0 salutes

 Posted: Fri May 11, 2012 10:47 am    Post subject: why not try posting in the DFSort part of the forum? What ways have you tried? Have you tried SFF for example?_________________Regards Nic
 <-- Click on right mark icon. If this post answer your question.

Moderator

Joined: 18 Feb 2006
Posts: 812
Location: San Jose, CA

 0 salutes

 Posted: Fri May 11, 2012 10:42 pm    Post subject: San, You haven't given a clear enough explanation of your requirement for anyone to help you. You show values with different numbers of decimal places ranging from 4 to 7. These must be "normalized" to be sorted. But you haven't told us the minimum or maximum number of decimal places your values can have (is it min=4 and max=7 or something else?). You also haven't told us the maximum length of your values (the maximum length you show is 12 - is that the actual max?). You don't need to SORT to get the maximum value. Do you need to SORT anyway (to get the values in sorted order)? What exactly do you want your output to look like? You need to do a better job of explaining your requirement before anyone can help you._________________Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration => DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
 <-- Click on right mark icon. If this post answer your question.

Member

Joined: 11 May 2012
Posts: 3

 0 salutes

 Posted: Tue May 15, 2012 8:58 am    Post subject: Hi Frank, Thanks for your response and I am sorry as my explanation is not very clear. The max length of my value is 12 and the no of decimal values which I want is 4. My requirement is I want to take the max. no from the list of values which I mentioned above. Hope it is clear now!!!_________________Regards, San
 <-- Click on right mark icon. If this post answer your question.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT + 5 Hours Page 1 of 1

 Jump to: Select a forum This Website----------------Admin AnnouncementsModerators Only APPLICATION PROGRAMMING----------------COBOLJCLDFSORT , ICETOOL & UtilitiesCICSEASYTRIEVE DATA MANAGEMENT SYSTEMS----------------DB2 SQL - DB2 PROGRAMMINGVSAM - File systemIMS DBIDMS TOOLS----------------XPEDITERFILE-AIDCHANGE MANENDEVOR, COOLGEN , PANVALET and CA-7 OTHER LANGUAGES----------------TSO, CLIST & REXXPL/IASSEMBLERIMS/DC CAREERS / JOBS DISCUSSIONS / INTERVIEW QUESTIONS----------------JOB VACANCIESJOB DISCUSSIONABEND CODES / ERROR CODESDB2 INTERVIEW QUESTIONSCOBOL INTERVIEW QUESTIONSJCL INTERVIEW QUESTIONSVSAM INTERVIEW QUESTIONSCICS INTERVIEW QUESTIONSINTERVIEW QUESTIONS OTHER MAINFRAME SUBJECTS----------------XMLMQSERIES & WEBSPHEREOTHER SUBJECTS GENERAL FORUMS----------------EntertainmentGeneral DiscussionPersonality DevelopmentOff TopicsSuggestions & Feedback
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

  Topics   Replies   Author   Views   Last Post Related topics What are all the COBOL compilers available? 6 Sweetu 14509 Mon Feb 01, 2016 10:48 pmacademyindia4 Reg: Different operating systems in mainframes 2 156138 6684 Mon Feb 01, 2016 1:35 amacademyindia4 compare 2 files with different LRECL 13 nina 17008 Mon Feb 01, 2016 1:34 amacademyindia4 Different forms of Case -when (loop handling) in Eazytrieve 3 Avani 10273 Mon Feb 01, 2016 1:34 amacademyindia4 Copy records for matching key appearing at different places. 4 rangab 7157 Tue Feb 03, 2009 11:36 pmrangab

 Cobol TutorialThis cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3..... DB2 TutorialDB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters CICS TutorialThis CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming... JCL TutorialThis is most popular JCL tutorial from mainframegurukul. It does contain important jcl .... SORT TutorialThis Tutorial covers all important aspects of DFSORT. Has more SORT examples INTERVIEW QuestionsThis page covers important interview questions Mainframe Jobs Mainframe Jobs posted by members of mainframegurukul forum FaceBook PageMainframeGurukul FaceBook Page LinkedIn PageMainframeGurkul Linkedin Page

 Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial Drona Educational Forums - Mainframe Cobol DB2 CICS Board Powered by phpBB
mainframetopic-6480.html