IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

to sort a data set using catalog procedure???


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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 Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Sep 28, 2005 10:27 pm
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:

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
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
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 Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Sep 29, 2005 12:00 am
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
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
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 Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Sep 29, 2005 12:43 am
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
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 Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Sep 29, 2005 2:05 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top