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
 

 

to sort a data set using catalog procedure???

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

New User


Joined: 26 Sep 2005
Posts: 13
Location: Hyderabad

PostPosted: Wed Sep 28, 2005 9:41 pm    Post subject: to sort a data set using catalog procedure???
Reply with quote

I am a stater..

can any one let me know to use the catalog procedure to sort the data set
Back to top
View user's profile Send private message

pmmsiresh

New User


Joined: 26 Sep 2005
Posts: 13
Location: Hyderabad

PostPosted: Wed Sep 28, 2005 9:47 pm    Post subject:
Reply with quote

I have the another doubt..

I want to know the actual function of the INREC... parameter.. which is used to sort the particular fields in a data sets.. but I am getting error, I am using

INREC fields (Starting position in the o/p data set : Position odf the i/p data set , length)

as the syntax

is it right???
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: Wed Sep 28, 2005 10:27 pm    Post subject:
Reply with quote

Quote:
can any one let me know to use the catalog procedure to sort the data set


Do you mean the SORT or SORTD catalogued procedure shipped with DFSORT or something else?

Quote:
I want to know the actual function of the INREC... parameter.. which is used to sort the particular fields in a data sets


The INREC statement is used to reformat the input records before they are sorted, merged or copied. 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/software/sort/mvs/srtmpub.html

Quote:
I am getting error, I am using

INREC fields (Starting position in the o/p data set : Position odf the i/p data set , length)

as the syntax


The syntax for that type of item in INREC (many different types of items are supported) is:

Code:

   INREC FIELDS=(c:p,m)


where c is the output position, p is the input position and m is the input length.

If you need help with specific errors, show your control statements and the error messages you received.
Back to top
View user's profile Send private message
pmmsiresh

New User


Joined: 26 Sep 2005
Posts: 13
Location: Hyderabad

PostPosted: Wed Sep 28, 2005 11:29 pm    Post subject:
Reply with quote

thank you ... I mean the just the sortting.. I am the beginner
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: Thu Sep 29, 2005 12:00 am    Post subject:
Reply with quote

If you're asking for the JCL to sort a data set, it's:

Code:

//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...   input file
//SORTOUT DD DSN=...   output file
//SYSIN DD *
  SORT FIELDS=(p,m,f,s,...)
/*


where p is the starting position of the key, m is the length of the key, f is the format of the key (e.g. CH) and s is A for ascending or D for descending. You can have one or more keys.

Again, I'd suggest reading through "z/OS DFSORT: Getting Started".
Back to top
View user's profile Send private message
pmmsiresh

New User


Joined: 26 Sep 2005
Posts: 13
Location: Hyderabad

PostPosted: Thu Sep 29, 2005 12:08 am    Post subject:
Reply with quote

sure... thank you again..
Back to top
View user's profile Send private message
pmmsiresh

New User


Joined: 26 Sep 2005
Posts: 13
Location: Hyderabad

PostPosted: Thu Sep 29, 2005 12:22 am    Post subject:
Reply with quote

is it possible to right the same without using PGM=ICEMAN ?
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: Thu Sep 29, 2005 12:43 am    Post subject:
Reply with quote

I'm not sure what you're asking.

PGM=ICEMAN or PGM=SORT invokes the sort product at your site. If you use the SORTD procedure shipped with DFSORT, you can specify:

Code:

//S1 EXEC SORTD
//SORTIN DD DSN=...  input file
//SORTOUT DD DSN=...  ouput file
//SYSIN DD *
  SORT FIELDS=(p,m,f,s,...)
/*


but this will just expand into

XXSORTD EXEC PGM=ICEMAN

so you'll still be using PGM=ICEMAN.

Please try to give more details in your questions - it's hard to understand what it is you're asking from your cryptic questions.
Back to top
View user's profile Send private message
pmmsiresh

New User


Joined: 26 Sep 2005
Posts: 13
Location: Hyderabad

PostPosted: Thu Sep 29, 2005 12:55 am    Post subject:
Reply with quote

I am sorry for the confusion..

what I mean is to sort using the catalog procedure, without using ICEMAN utility..
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: Thu Sep 29, 2005 2:05 am    Post subject:
Reply with quote

Siresh,

You're not making any sense. The ICEMAN utility is your sort product. You can't sort without using your sort product. I showed you how to use the SORTD catalogued procedure to sort and explained that this just invokes PGM=ICEMAN (the sort product). I've already answered your question. What is it in my answer that you don't understand?
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 Sorting group data rajella DFSORT/ICETOOL 3 Sun Jan 22, 2017 11:32 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us