HP3000-L Archives

November 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tracy Pierce <[log in to unmask]>
Reply To:
Tracy Pierce <[log in to unmask]>
Date:
Thu, 16 Nov 2000 11:39:52 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
> 1. Does hp cobol compiler know about hexa literals? For example MF
> recognize
> X"4142" ("AB") .
I believe NOT, but it does like octal.  "AB" is %40502.
<free Bob Green plug>
Qedit is your tool of choice, it will give you these easily via
/="AB",%
result=%040502
/=$4142,%
result=%04052

> 2. Is it possible to create  copy libraries from  POSIX files
> (i.e files
> edited with vi)? I tried adding such files to a copy library with
> COBEDIT.PUB.SYS but when i used copy statement to include modules from
> this library in a source code i got tones of compiling errors
> from this
> modules even if everything was ok when i used $INCLUDE .
Again, Qedit is your tool...
:FILE COPYLIB=mylib.src
/t copybook      ;comment (your posix file)
/k (copybook)    ;comment the parens tell QE to deal with ksam copylibs,
which it does quite nicely.
</free Bob Green plug>

Tracy Pierce

ATOM RSS1 RSS2