View previous topic :: View next topic
|
Author |
Message |
pmmsiresh
New User
Joined: 26 Sep 2005 Posts: 13 Location: Hyderabad
|
|
|
|
I am a stater..
can any one let me know to use the catalog procedure to sort the data set |
|
Back to top |
|
|
pmmsiresh
New User
Joined: 26 Sep 2005 Posts: 13 Location: Hyderabad
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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:
Use [URL] BBCode for External Links
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 |
|
|
pmmsiresh
New User
Joined: 26 Sep 2005 Posts: 13 Location: Hyderabad
|
|
|
|
thank you ... I mean the just the sortting.. I am the beginner |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
pmmsiresh
New User
Joined: 26 Sep 2005 Posts: 13 Location: Hyderabad
|
|
|
|
sure... thank you again.. |
|
Back to top |
|
|
pmmsiresh
New User
Joined: 26 Sep 2005 Posts: 13 Location: Hyderabad
|
|
|
|
is it possible to right the same without using PGM=ICEMAN ? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
pmmsiresh
New User
Joined: 26 Sep 2005 Posts: 13 Location: Hyderabad
|
|
|
|
I am sorry for the confusion..
what I mean is to sort using the catalog procedure, without using ICEMAN utility.. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
|