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 Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 1 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 9 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


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