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

How to set the DBCS option for the compiler


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pravin_mhaske

New User


Joined: 23 Feb 2007
Posts: 1
Location: Pune

PostPosted: Fri Feb 23, 2007 11:07 pm
Reply with quote

Hi, I want to process some DBCS (KANJI) charcters, but getting error that the NODBCS option is in effect. How to set the DBCS option for the compiler?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Feb 24, 2007 1:46 am
Reply with quote

Hello,

Look in your compile JCL and you will find something like this
Code:
COBMVS  EXEC PGM=IGYCRCTL,REGION=4096K,                     
         PARM=('OUTDD(SYSOU1)',NOLIST,LIB,MAP,RENT,XREF,ADV)

In the compile output, at the top there will be something like
Code:
PP 5655-G53 IBM ENTERPRISE COBOL FOR Z/OS
INVOCATION PARAMETERS:                   
OUTDD(SYSOU1),NOLIST,LIB,MAP,RENT,XREF,ADV
OPTIONS IN EFFECT:             
    NOADATA                   
      ADV                     
      QUOTE                   
      ARITH(COMPAT)           
    NOAWO                     
      BUFSIZE(4096)           
    NOCICS                     
      CODEPAGE(1140)           
    NOCOMPILE(S)               
    NOCURRENCY                 
      DATA(31)                 
    NODATEPROC                 
    NODBCS   <=== See This Line
    NODECK 
.
.
.                   


Notice that the parameters from the execute statement are reflected in the INVOCATION PARAMETERS. Farther down is the parameter controlling DBCS (in this example it is NODBCS). Include DBCS in the parameters on your EXEC statement and you should be good to go.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Feb 24, 2007 1:47 am
Reply with quote

Hmmmm.

You can have bold or you can have code, but you can't have bold code icon_smile.gif
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Feb 24, 2007 2:08 am
Reply with quote

Nope. I usually suggest using an arrow, like

Code:

NODBCS <=== See This Line
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Feb 24, 2007 2:14 am
Reply with quote

Good point icon_idea.gif
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts SCOPE PENDING option -check data DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts CICS vs LE: STORAGE option CICS 0
No new posts INSYNC option with same function as I... JCL & VSAM 0
Search our Forums:

Back to Top