View previous topic :: View next topic
|
Author |
Message |
amity.vikas
New User
Joined: 11 Jan 2006 Posts: 6
|
|
|
|
Hello,
I am facing a situation where i need to include all the strings having quote (') in it. However when i use include as given below(for STRING say D'SLIVA), job abends as it couldn't interpret string after first quote encounter.
INCLUDE COND=(1,STRLEN,CH,EQ,C'STRING')
Please advise. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Vikas,
Were you trying this -
Code: |
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD *
D'SILVA
DSILVA
AAAAA'A
AAAAAAA
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(1,8,SS,EQ,C'''')
/*
|
o/p:
Code: |
****************
D'SILVA
AAAAA'A
**************** |
Change sort card as per your need. |
|
Back to top |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
murmokh,
it would be gud if u can explain a lil bit on the "SS" u used in the sort card.. |
|
Back to top |
|
|
amity.vikas
New User
Joined: 11 Jan 2006 Posts: 6
|
|
|
|
Thanks Murali, its working!! |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
raak,
Quote: |
it would be gud if u can explain a lil bit on the "SS" u used in the sort card.. |
SS stands for substring search. This is for searching a constant within a field. |
|
Back to top |
|
|
|