MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need help about sort file.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Frankjiang
Beginner


Joined: 10 Jan 2004
Posts: 17
Topics: 10
Location: england

PostPosted: Sat Feb 07, 2004 2:05 am    Post subject: Need help about sort file. Reply with quote

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
View user's profile Send private message
rajasekharreddy
Beginner


Joined: 06 Feb 2004
Posts: 1
Topics: 0
Location: chennai

PostPosted: Mon Feb 09, 2004 1:02 am    Post subject: Reply with quote

Hi,

Change the Select statement like

SELECT WorkFile ASSIGN TO WORK.TMP.


hope this helps,

raj
_________________
cheers

rajasekhar
Back to top
View user's profile Send private message Send e-mail
Frankjiang
Beginner


Joined: 10 Jan 2004
Posts: 17
Topics: 10
Location: england

PostPosted: Mon Feb 09, 2004 4:34 am    Post subject: Reply with quote

Hi rajasekhar:

Thank you very much for your remind. It worked with WORKTMP.

Regards

Frank
_________________
franklin
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Feb 09, 2004 5:52 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group