View previous topic :: View next topic
|
Author |
Message |
rathvel Warnings : 2 New User
Joined: 27 Sep 2005 Posts: 1
|
|
|
|
Hello,
I need to include single code in Working-Storage variable comment.
Eg : My value would be INCLUDE=(140,5,CH,EQ,C'00001'.
Kindly let me know that How should I declare working-storage variable to hold above mentioned value. So that I can use that variable in procedure division....
Thanks & Regards,
Rathvel. |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Rathvel,
Code: |
05 VAR-1 PIC X(29) VALUE 'INCLUDE=(140,5,CH,EQ,C''00001'''.
|
|
|
Back to top |
|
|
new2cobol
New User
Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
|
|
Can't we use a single-quote double-quote combo?
Code: |
05 VAR-1 PIC X(29) VALUE "INCLUDE=(140,5,CH,EQ,C'00001'". |
Won't the above line work??? |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
new2cobol,
Yes that is expectable if the COBOL compiled option QUOTE is in effect. However, I believe most places have the APOST compiler option on.
You should try not to change from the installation standard, it makes code hard to maintain.
Dave, |
|
Back to top |
|
|
|