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

Character Quotes in ICETOOL


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

New User


Joined: 06 Feb 2007
Posts: 29
Location: Noida

PostPosted: Tue Nov 08, 2011 1:37 am
Reply with quote

Hi,

I want to build a record which should be in quotes
Code:

INCLUDE COND=(1,27,CH,EQ,C'EZA2284I XXXXXXXXXXXXXXXXXXX')
OUTFIL BUILD=(1:C'GET',4:1X,5:10,58,63:1X,64:C'+',65:16X,/,
              1:C''',2:Dataset Name(+1)',30:C''',
              31:50X)


But I get an error message
INCLUDE COND=(1,27,CH,EQ,C'EZA2284I XXXXXXXXXXXXXXXXXXX')
OUTFIL BUILD=(1:C'GET',4:1X,5:10,58,63:1X,64:C'+',65:16X,/,
1:C''',2:C'Dataset Name(+1)',30:C''',
$
SYNTAX ERROR
31:50X)
$

Please let me know where I am going wrong

Thanks
Sudip
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Tue Nov 08, 2011 1:56 am
Reply with quote

Hi Sudip,



Please find the correct control card

Code:

INCLUDE COND=(1,27,CH,EQ,C'EZA2284I XXXXXXXXXXXXXXXXXXX')           
OUTFIL BUILD=(1:C'GET',4:1X,5:10,58,63:1X,64:C'+',65:16X,/,         
              1:C'''',2:C'DATASET NAME(+1)',30:C'''',               
              31:50X)



Sai
Back to top
View user's profile Send private message
sudib19

New User


Joined: 06 Feb 2007
Posts: 29
Location: Noida

PostPosted: Tue Nov 08, 2011 2:00 am
Reply with quote

Hi,

Thanks

Sorry I missed out the quote in my post while cutting and pasting, but even with that it gives me the error.

Code:

INCLUDE COND=(1,27,CH,EQ,C'EZA2284I XXXXXXXXXXXXXXXXXX')
OUTFIL BUILD=(1:C'GET',4:1X,5:10,52,57:1X,58:C'+',59:12X,/,
              1:C''',2:'Dataset Name(+1)',30:C''',
              31:50X)


Code:


  INCLUDE COND=(1,27,CH,EQ,C'EZA2284I FullServiceAddress')
  OUTFIL BUILD=(1:C'GET',4:1X,5:10,58,63:1X,64:C'+',65:16X,/,
                1:C''',2:C'Dataset Name(+1)',30:C''',
                           $
SYNTAX ERROR
                31:50X)
                $
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Tue Nov 08, 2011 2:01 am
Reply with quote

Hi Sudip,



you should add one extra single quote at
Code:
30:C''''
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: Tue Nov 08, 2011 2:38 am
Reply with quote

Sudip,

You would also need to change:

1:C'''

to

1:C''''

But you can simplify your DFSORT statements like this:

Code:

  INCLUDE COND=(1,27,CH,EQ,C'EZA2284I XXXXXXXXXXXXXXXXXX')   
  OUTFIL BUILD=(C'GET ',10,52,57:C' +',80:X,/,               
              C'''Dataset Name(+1)',30:C'''')               
Back to top
View user's profile Send private message
sudib19

New User


Joined: 06 Feb 2007
Posts: 29
Location: Noida

PostPosted: Tue Nov 08, 2011 2:41 am
Reply with quote

Thanks Frank and Sai.. it worked out great.

Thanks for the help.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare the member of two pds on las... DFSORT/ICETOOL 13
No new posts Denomination counts by using PARSE in... DFSORT/ICETOOL 8
No new posts ICETOOL to SUM String DFSORT/ICETOOL 1
No new posts Help with C character vs C string All Other Mainframe Topics 3
No new posts ICETOOL returns no records JCL & VSAM 1
Search our Forums:


Back to Top