(I posted about this on the VSI forums, but am posting here in case
there are any old VMS hackers hanging out only here.)
Does anyone have an code example of calling SYS$FAO in a BLISS program?
I'm trying to teach myself the language from old manuals and want a way
to print text and numeric data from programs to my terminal. I've found
the TUTIO package, but would like to know a method that also works in
batch mode. SYS$FAO looks like a useful way to format data into
character strings for output with LIB$PUT_OUTPUT, but I've so far only succeeded in printing blank lines, and can only find coding examples in
MACRO or FORTRAN.
(I posted about this on the VSI forums, but am posting here in case
there are any old VMS hackers hanging out only here.)
Does anyone have an code example of calling SYS$FAO in a BLISS program?
I'm trying to teach myself the language from old manuals and want a way
to print text and numeric data from programs to my terminal. I've found
the TUTIO package, but would like to know a method that also works in
batch mode. SYS$FAO looks like a useful way to format data into
character strings for output with LIB$PUT_OUTPUT, but I've so far only succeeded in printing blank lines, and can only find coding examples in
MACRO or FORTRAN.
Try section 8.3.1 of the the BLISS 32 User Manual?
https://www.digiater.nl/openvms/freeware/v50/bliss/b32uman.pdf
Jim Duff <jim@bad.invalid> writes:
MSGDESC[0] = .RSLT; ! Modify output descriptor
..............^
%BLS32-W-TEXT, Fetch or store applied to field of zero size
at line number 29 in file DISK$USER_01:[PAPA]SHOWTIMEUM.B32;2
However, changing the flagged line as follows allows the example to
compile and run as expected:
MSGDESC [DSC$W_LENGTH] = .RSLT;
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 437 |
Nodes: | 16 (2 / 14) |
Uptime: | 193:39:23 |
Calls: | 9,135 |
Calls today: | 2 |
Files: | 13,432 |
Messages: | 6,035,422 |