SORT CARD LIKE Sort first by 6..10, after 1,2

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
sumana.jayaram
Member
Posts: 4
Joined: Wed Apr 22, 2009 10:45 am

SORT CARD LIKE Sort first by 6..10, after 1,2

Post by sumana.jayaram » Wed Apr 22, 2009 10:59 am

Hello.. Can anyone help me in understanding what this SORT Card means?
Sort first by 6..10, after 1,2

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Apr 22, 2009 12:17 pm

Hi sumana.jayaram and welcome to the Forums,

It's not clear what is being asked. To get better help from the forum it's good to describe your problem well. Better you show the actual code. Please use BBcode Tags when you post the actual Sort card.
Regards,
Anuj

sumana.jayaram
Member
Posts: 4
Joined: Wed Apr 22, 2009 10:45 am

Post by sumana.jayaram » Wed Apr 22, 2009 12:28 pm

the SORT line that I pasted is present as it is in one of the requirements document in my project. I just wanted the syntax of the SORT card for that line.. since it was a bit confusing for me. I am trying possible ways..

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Apr 22, 2009 12:40 pm

Ask this to them who have created the "requirement Document" . . .
I am trying possible ways..
Not necessary that they will lead you to the expected solution . . .
Regards,
Anuj

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Wed Apr 22, 2009 12:53 pm

This could be your sort card.

Code: Select all

  SORT FIELDS=(6,10,CH,A,1,2,CH,A)
Assumed both are character fields.
In my assumption, what they might be telling is... first sort on the field
start with postion 6... and then SORT on the field starting postion 1.

You need to send a query to the person who has raised this task.
Natarajan
Chennai

sumana.jayaram
Member
Posts: 4
Joined: Wed Apr 22, 2009 10:45 am

Post by sumana.jayaram » Wed Apr 22, 2009 1:35 pm

Thank you Natarajan.. This is what I wanted ! :) but I guess the second parameter should be the length of the field ..and so it will be

Code: Select all

  SORT FIELDS=(6,5,CH,A,1,2,CH,A)

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Wed Apr 22, 2009 2:33 pm

welcome.
Natarajan
Chennai

User avatar
Frank Yaeger
Moderator
Posts: 812
Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA
Contact:

Post by Frank Yaeger » Wed Apr 22, 2009 8:23 pm

sumana.jayaram,

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/servers/storage/support/sof ... tmpub.html
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

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Jan 25, 2016 10:30 pm

<< Content deleted By Admin >>

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others