View previous topic :: View next topic |
Author |
Message |
Frankjiang Beginner
Joined: 10 Jan 2004 Posts: 17 Topics: 10 Location: england
|
Posted: Sat Feb 07, 2004 2:05 am Post subject: Need help about sort file. |
|
|
I compile the following Cobol code for sort under Fujitsu COBOL 4,
When I define sort file, got error message. I think the code has no problem. I do not know what wrong with the compile. Need help.
Thank you.
Frank
FILE-CONTROL.
...
SELECT WorkFile ASSIGN TO "WORK.TMP".
DATA DIVISION.
FILE SECTION.
SD WorkFile. (LINE 19)
01 WorkRec.
02 FILLER PIC 9(7).
02 WStudentName PIC X(10).
02 FILLER PIC X(12).
02 WGender PIC X.
88 MaleStudent VALUE "M".
...
ERROR MESSAGE FOR(LINE 19): SORT-MERGE FILE CAN ONLY SPECIFY
FILE-IDENTIFIER IN ASSIGN CLAUSE. ACCEPT AS WRITTEN _________________ franklin |
|
Back to top |
|
 |
rajasekharreddy Beginner
Joined: 06 Feb 2004 Posts: 1 Topics: 0 Location: chennai
|
Posted: Mon Feb 09, 2004 1:02 am Post subject: |
|
|
Hi,
Change the Select statement like
SELECT WorkFile ASSIGN TO WORK.TMP.
hope this helps,
raj _________________ cheers
rajasekhar |
|
Back to top |
|
 |
Frankjiang Beginner
Joined: 10 Jan 2004 Posts: 17 Topics: 10 Location: england
|
Posted: Mon Feb 09, 2004 4:34 am Post subject: |
|
|
Hi rajasekhar:
Thank you very much for your remind. It worked with WORKTMP.
Regards
Frank _________________ franklin |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Feb 09, 2004 5:52 am Post subject: |
|
|
Frankjiang,
Check this link for FUJITSU Softcopy Manuals
Check chapter 12 in Fujitsu COBOL User's Guide for detailed explanation with examples for SORT and Merge procedures.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|