* DEC cobol/ problem with link phase
@ 1995-12-08 5:00 hugh arnold
1995-12-15 5:00 ` Craig Neth USG
1995-12-16 5:00 ` Stephen LaBelle - MSCD
0 siblings, 2 replies; 3+ messages in thread
From: hugh arnold @ 1995-12-08 5:00 UTC (permalink / raw)
I have found all the other libraries mentioned(cob,curses,...) but not the
sort library. Has anyone dealt with this problem before or got any ideas?
hugh@du.edu
$ cobol -ansi -v p2.cob
@(#)DEC COBOL Compiler Driver V2.1-24
/usr/lib/cmplrs/cobol/dcobol -ansi -o /tmp/cobAAAaajqra.o p2.cob
/usr/bin/cc -v /tmp/cobAAAaajqra.o -lcob -lcurses -lFutil -lots2 -lots -lisam -lsort -lexc -lmld -lm -nocount
/usr/lib/cmplrs/cc/ld -g0 -O1 -call_shared /usr/lib/cmplrs/cc/crt0.o /tmp/cobAAAaajqra.o -lcob -lcurses -lFutil -lots2 -lots -lisam -lsort -lexc -lmld -lm -nocount -lc
ld:
Can't locate file for: -lsort
0.0u 0.0s 0:00 90% 0+6k 0+0io 0pf+0w
cobol: Severe: Failed while trying to link.
$ ls -l p2.cob
-rw------- 1 hugh general 2825 Dec 8 08:45 p2.cob
$ cat p2.cob
IDENTIFICATION DIVISION.
PROGRAM-ID. P2.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT FILE-IN
ASSIGN TO "p2.dat"
ORGANIZATION IS LINE SEQUENTIAL
ACCESS MODE IS SEQUENTIAL.
SELECT FILE-OUT
ASSIGN TO "disk2.dat"
ORGANIZATION IS LINE SEQUENTIAL
ACCESS MODE IS SEQUENTIAL.
DATA DIVISION.
FILE SECTION.
FD FILE-IN
LABEL RECORDS ARE STANDARD.
01 FILE-IN-RECORD.
05 CUS-NUM-I PIC X(5).
05 FILLER PIC X(15).
05 CUS-NAME-I PIC X(15).
05 FILLER PIC X(24).
FD FILE-OUT
LABEL RECORDS ARE OMITTED.
01 FILE-OUT-RECORD PIC X(56).
WORKING-STORAGE SECTION.
01 EOF PIC X(3) VALUE ' NO'.
01 HDG-LINE.
05 CC PIC X VALUE SPACE.
05 FILLER PIC X(5) VALUE 'CUSNO'.
05 FILLER PIC X(5) VALUE SPACES.
05 FILLER PIC X(4) VALUE 'NAME'.
05 FILLER PIC X(16) VALUE SPACES.
05 FILLER PIC X(5) VALUE 'CUSNO'.
05 FILLER PIC X(5) VALUE SPACES.
05 FILLER PIC X(4) VALUE 'NAME'.
01 DETAIL-LINE.
05 CC PIC X VALUE ' '.
05 CUS-NUM-O-1 PIC X(5).
05 FILLER PIC X(5) VALUE SPACES.
05 CUS-NAME-O-1 PIC X(15).
05 FILLER PIC X(5) VALUE SPACES.
05 CUS-NUM-O-2 PIC X(5).
05 FILLER PIC X(5) VALUE SPACES.
05 CUS-NAME-O-2 PIC X(15).
PROCEDURE DIVISION.
000-MAIN.
OPEN INPUT FILE-IN
OUTPUT FILE-OUT.
WRITE FILE-OUT-RECORD FROM HDG-LINE.
PERFORM 300-READ.
PERFORM 400-PROCESS-LOOP
UNTIL EOF = 'YES'.
CLOSE FILE-IN
FILE-OUT.
STOP RUN.
300-READ.
READ FILE-IN
AT END
MOVE 'YES' TO EOF.
400-PROCESS-LOOP.
MOVE CUS-NUM-I TO CUS-NUM-O-1.
MOVE CUS-NUM-I TO CUS-NUM-O-2.
MOVE CUS-NAME-I TO CUS-NAME-O-1.
MOVE CUS-NAME-I TO CUS-NAME-O-2.
WRITE FILE-OUT-RECORD FROM DETAIL-LINE.
PERFORM 300-READ.
$ exit
script done on Fri Dec 08 09:11:07 1995
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DEC cobol/ problem with link phase
1995-12-08 5:00 DEC cobol/ problem with link phase hugh arnold
@ 1995-12-15 5:00 ` Craig Neth USG
1995-12-16 5:00 ` Stephen LaBelle - MSCD
1 sibling, 0 replies; 3+ messages in thread
From: Craig Neth USG @ 1995-12-15 5:00 UTC (permalink / raw)
In article <4a9prm$5uj@hermes.cair.du.edu>, hugh@du.edu (hugh arnold) writes:
>I have found all the other libraries mentioned(cob,curses,...) but not the
>sort library. Has anyone dealt with this problem before or got any ideas?
>
> hugh@du.edu
You need to install the sort runtime library - it's in it's own subset.
The sort library subset is not installed by default as part of the OS
install, but it is shipped on the OS disk. Look for a subset with the title
of 'Sort Runtime Library' - the actual subset name is SORLIBXXX.
--
--------------------------------------------------------------------------------
Craig Neth ! neth@zk3.dec.com
Digital Equipment Corporation !
110 Spit Brook Road ZKO3-3/Y25 !
Nashua, NH 03062 ! Opinions expressed herein are my own.
================================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DEC cobol/ problem with link phase
1995-12-08 5:00 DEC cobol/ problem with link phase hugh arnold
1995-12-15 5:00 ` Craig Neth USG
@ 1995-12-16 5:00 ` Stephen LaBelle - MSCD
1 sibling, 0 replies; 3+ messages in thread
From: Stephen LaBelle - MSCD @ 1995-12-16 5:00 UTC (permalink / raw)
Hi,
There is a sort library that must be installed for DEC COBOL on OSF/1.
I believe the fileset is SORLIB, its on the OSF/1 operating system
CD. Is it installed?
setld should have warned whomever installed COBOL about this during
the install. Thats how I found out about it.
Steve
In article <4a9prm$5uj@hermes.cair.du.edu>, hugh@du.edu (hugh arnold) writes:
> I have found all the other libraries mentioned(cob,curses,...) but not the
> sort library. Has anyone dealt with this problem before or got any ideas?
>
> hugh@du.edu
>
>
> $ cobol -ansi -v p2.cob
> @(#)DEC COBOL Compiler Driver V2.1-24
> /usr/lib/cmplrs/cobol/dcobol -ansi -o /tmp/cobAAAaajqra.o p2.cob
> /usr/bin/cc -v /tmp/cobAAAaajqra.o -lcob -lcurses -lFutil -lots2 -lots -lisam -lsort -lexc -lmld -lm -nocount
> /usr/lib/cmplrs/cc/ld -g0 -O1 -call_shared /usr/lib/cmplrs/cc/crt0.o /tmp/cobAAAaajqra.o -lcob -lcurses -lFutil -lots2 -lots -lisam -lsort -lexc -lmld -lm -nocount -lc
> ld:
> Can't locate file for: -lsort
> 0.0u 0.0s 0:00 90% 0+6k 0+0io 0pf+0w
> cobol: Severe: Failed while trying to link.
>
>
>
>
>
> $ ls -l p2.cob
> -rw------- 1 hugh general 2825 Dec 8 08:45 p2.cob
> $ cat p2.cob
> IDENTIFICATION DIVISION.
> PROGRAM-ID. P2.
>
> ENVIRONMENT DIVISION.
> INPUT-OUTPUT SECTION.
> FILE-CONTROL.
> SELECT FILE-IN
> ASSIGN TO "p2.dat"
> ORGANIZATION IS LINE SEQUENTIAL
> ACCESS MODE IS SEQUENTIAL.
>
> SELECT FILE-OUT
> ASSIGN TO "disk2.dat"
> ORGANIZATION IS LINE SEQUENTIAL
> ACCESS MODE IS SEQUENTIAL.
>
> DATA DIVISION.
> FILE SECTION.
> FD FILE-IN
> LABEL RECORDS ARE STANDARD.
> 01 FILE-IN-RECORD.
> 05 CUS-NUM-I PIC X(5).
> 05 FILLER PIC X(15).
> 05 CUS-NAME-I PIC X(15).
> 05 FILLER PIC X(24).
>
> FD FILE-OUT
> LABEL RECORDS ARE OMITTED.
> 01 FILE-OUT-RECORD PIC X(56).
>
> WORKING-STORAGE SECTION.
> 01 EOF PIC X(3) VALUE ' NO'.
>
> 01 HDG-LINE.
> 05 CC PIC X VALUE SPACE.
> 05 FILLER PIC X(5) VALUE 'CUSNO'.
> 05 FILLER PIC X(5) VALUE SPACES.
> 05 FILLER PIC X(4) VALUE 'NAME'.
> 05 FILLER PIC X(16) VALUE SPACES.
> 05 FILLER PIC X(5) VALUE 'CUSNO'.
> 05 FILLER PIC X(5) VALUE SPACES.
> 05 FILLER PIC X(4) VALUE 'NAME'.
>
> 01 DETAIL-LINE.
> 05 CC PIC X VALUE ' '.
> 05 CUS-NUM-O-1 PIC X(5).
> 05 FILLER PIC X(5) VALUE SPACES.
> 05 CUS-NAME-O-1 PIC X(15).
> 05 FILLER PIC X(5) VALUE SPACES.
> 05 CUS-NUM-O-2 PIC X(5).
> 05 FILLER PIC X(5) VALUE SPACES.
> 05 CUS-NAME-O-2 PIC X(15).
>
> PROCEDURE DIVISION.
> 000-MAIN.
> OPEN INPUT FILE-IN
> OUTPUT FILE-OUT.
> WRITE FILE-OUT-RECORD FROM HDG-LINE.
> PERFORM 300-READ.
> PERFORM 400-PROCESS-LOOP
> UNTIL EOF = 'YES'.
> CLOSE FILE-IN
> FILE-OUT.
> STOP RUN.
>
> 300-READ.
> READ FILE-IN
> AT END
> MOVE 'YES' TO EOF.
>
> 400-PROCESS-LOOP.
> MOVE CUS-NUM-I TO CUS-NUM-O-1.
> MOVE CUS-NUM-I TO CUS-NUM-O-2.
> MOVE CUS-NAME-I TO CUS-NAME-O-1.
> MOVE CUS-NAME-I TO CUS-NAME-O-2.
> WRITE FILE-OUT-RECORD FROM DETAIL-LINE.
>
> PERFORM 300-READ.
> $ exit
>
> script done on Fri Dec 08 09:11:07 1995
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-12-16 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-08 5:00 DEC cobol/ problem with link phase hugh arnold
1995-12-15 5:00 ` Craig Neth USG
1995-12-16 5:00 ` Stephen LaBelle - MSCD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox