|
View previous topic :: View next topic
|
| Author |
Message |
shaji nair
New User
Joined: 22 Jun 2005 Posts: 2
|
|
|
|
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.
Thanks in advance |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

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:
| Code: |
OUTREC IFTHEN=(WHEN=(5,2,PD,EQ,22),OVERLAY=(5:+55,TO=PD,LENGTH=2))
|
|
|
| Back to top |
|
 |
shaji nair
New User
Joined: 22 Jun 2005 Posts: 2
|
|
|
|
Thanks for the reply
If i am using the sort card as
1)
SORT FIELDS=COPY
INCLUDE COND=(5,2,PD,EQ,025)
OUTREC FIELDS=(1:1,4,X'054C',7:7,17550)
i am getting the error in spool like below
WER244A OUTREC - SHORT RECORD
2)
i change the sort card as
OPTION VLSHRT
SORT FIELDS=COPY
INCLUDE COND=(5,2,PD,EQ,025)
OUTREC FIELDS=(1,4,X'045C',7,17550)
again i am getting the same error.
3)
Today i changed the sort card as per your suggession.
OPTION VLSHRT
SORT FIELDS=COPY
INCLUDE COND=(5,2,PD,EQ,025)
OUTREC IFTHEN=(WHEN=(5,2,PD,EQ,25),OVERLAY=(5:+45,TO=PD,LENGTH=2))
now i am geeting the error like below.
WER268A OUTREC STATEMENT : SYNTAX ERROR
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

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. |
|
| Back to top |
|
 |
brganeshbabu
New User

Joined: 23 Jun 2005 Posts: 34 Location: Chennai
|
|
|
|
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. |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

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:
Use [URL] BBCode for External Links
The DFSORT website is also an excellent source of information on DFSORT and DFSORT's ICETOOL. You can access all of the topics available from:
Use [URL] BBCode for External Links |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|