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

Problem occurs while creating Dynamic Control card


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramfrom84

New User


Joined: 23 Aug 2006
Posts: 93
Location: chennai

PostPosted: Mon Feb 12, 2007 6:11 pm
Reply with quote

Hi All,

In sort Fields , creating Dynamic compare option we have ' in the input fields how it can be taken .
For example
SORT FIELDS=COPY

Field - I taken from one input File

OUTFIL FILES=03,
INCLUDE=(5,10,CH,LT,C'5ML'ANGELO')

Field - II taken from pther input File

OUTFIL FILES=04,
INCLUDE=
(5,10,CH,LT,C'5ML'ANGELO')

While compare both fields in the Using SORT it show error since there is " ' " in the compare fields , Compare option fails .How to solve this problem .Please help.

Note: It should be solved in Dynamic Control card.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Feb 12, 2007 6:37 pm
Reply with quote

Use two single apostrophe in place of 1 like

INCLUDE=(5,10,CH,LT,C'5ML''ANGELO')


Hope this solves your problem.
Back to top
View user's profile Send private message
ramfrom84

New User


Joined: 23 Aug 2006
Posts: 93
Location: chennai

PostPosted: Mon Feb 12, 2007 6:47 pm
Reply with quote

Thanks for reply ,Since it is Dynamically Creating the Control card , First we identify the Symbol "'". IF we Put Double Quotes then the input Filed Size will increase it ll affect the already existing logic for comparing other records.
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: Mon Feb 12, 2007 9:49 pm
Reply with quote

ram,

I have no idea what you meant by your last post. You asked how to code an apostrophe in a literal for INCLUDE. murmohk1 correctly told you that you must use two apostrophes for each apostrophe in a literal and showed an example. It's not clear what your references to dynamically creating the control statement, double quotes and the file size have to do with this. You need to explain what you're doing more clearly and what you see as the problem with using two apostrophes for one apostrophe in a literal before anyone can help you further.
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 JCL sort card - get first day and las... JCL & VSAM 9
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Creating Report using SORT DFSORT/ICETOOL 7
Search our Forums:

Back to Top