I have a VSAM KSDS file with variable length 0f 17552.which contains a field called COMP ID of pic 9(3) comp 3.also it is part of key field in that file
The values of this fields are 022,092,100,200 etc
Now I want to write a jcl to replace 022 with 055.
What I did is by using sort I had given like below
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(5,2,PD,EQ,025)
OUTREC FIELDS=(1,4,X'045C',7,17550)
//*
But this is throwing error. Please let me know how to do this.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
But this is throwing error.
Please post the complete error message. We can't read your mind.
Actually, your OUTREC statement doesn't seem to match what you said you wanted to do. You said you wanted to "replace 022 with 055", but your OUTREC statement includes a record with P'25' and replaces the P'25' with P'45'.
If you're using DFSORT and have the Dec, 2004 PTF, I'd suggest using this OUTREC statement:
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
The WER messages indicate you're using Syncsort, not DFSORT.
DFSORT supports the IFTHEN function. Syncsort does not support it.
I'm a DFSORT developer. DFSORT and Syncsort are competitive products. I'm happy to answer questions on DFSORT and DFSORT's ICETOOL, but I don't answer questions on Syncsort.
hi frank,
I am a beginner in mainframe. I don't know the usage of DFSORT. I know that sort utility is just to sort a dataset. I like to know much about the DFSORT utility. If you can send any link or any document on this, it will be helpful for me.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
B.R.Ganesh Babu ,
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 and papers, from: