 |
 |
| iSeries 400 Tips: |
|
 |
 |

ISERIES PROGRAMMER TIPS
Coloring source lines with COBOL and using a shortcut from within PDM
Yoni Tehan, Contributor 07.22.2008
Rating: -4.50- (out of 5)




|
Search400 reader Yoni Tehan read Nerandra Devireddy's tip Using SQL on System i to color source code and inline comments and was inspired to translate the SQL to COBOL+CL and share it with fellow AS/400 users here.
I saw the tip that explained coloring source lines using SQL. I took the liberty to translate it into COBOL+CL programs and call it from within the PDM environement. Here, you can color the remarks line in source with white color or change it as you like.
Next go to PDM (STRPDM) and choose option 9 (user options+enter) F6 to create new. Then name it AT or anything you like.
The command:
Then, when you type AT near COBOL source, all the remarks lines will be highlighted.
More colors:
Hex Color
20 Green
21 Green, reverse image
To continue reading for free, register below or login
To read more you must become a member of Search400.com
');
// -->

r>22 White
23 White, reverse image
24 Green, underscore
25 Green, underscore, reverse image
26 White, underscore
27 Nondisplay
28 Red
29 Red, reverse image
2A Red, high intensity
2B Red, high intensity, reverse image
2C Red, underscore
2D Red, underscore, reverse image
2E Red, underscore, blink
2F Nondisplay
30 Turquoise, column separator
31 Turquoise, column separator, reverse image
32 Yellow, column separator
33 White, reverse image, column separator
34 Turquoise, underscore, column separator
35 Turquoise, underscore, reverse image, column separator
36 Yellow, underscore, column separator
37 Nondisplay
38 Pink
39 Pink, reverse image
3A Blue
3B Blue, reverse image
3C Pink, underscore
3D Pink, underscore, reverse image
3E Blue, underscore
3F Nondisplay
ABOUT THE AUTHOR: Yoni Tehan is iSeries Administrator at Ashtrom Group Ltd.
 |

|
|
 |
|
 |
 |
 |
 |
| TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of . |
|
| |
All Rights Reserved, , TechTarget |
|
|
|
|
|