Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem occurs while creating Dynamic Control card

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Problem occurs while creating Dynamic Control card
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: 1439
Location: Bangalore,India

PostPosted: Mon Feb 12, 2007 6:37 pm    Post subject: Re: Problem occurs while creating Dynamic Control card
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    Post subject: Re: Problem occurs while creating Dynamic Control card
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 Moderator


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

PostPosted: Mon Feb 12, 2007 9:49 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us