|
|
| Author |
Message |
arunkrishnac
New User
Joined: 29 Apr 2008 Posts: 2 Location: mysore
|
|
|
|
Hi,
I want to use the SORT verb in APS-COBOL program. For e.g:
SORT SORT-FILE
... ON ASCENDING KEY SORT-APPL-SEQ-NO
... INPUT PROCEDURE IS 2000-GENERATE-FILE-REQ
... OUTPUT PROCEDURE IS 5000-RETURN-SORTED-RECS
1. Is it mandatory that 2000-GENERATE-FILE-REQ and 5000-RETURN-SORTED-RECS should be SECTIONs?
2. Can I use this SORT statement inside a REPEAT loop?
3. Any other restrictions with the use of SORT verb?[/Search] |
|
| Back to top |
|
 |
References
|
Posted: Fri Jun 13, 2008 4:21 pm Post subject: Re: SORT verb in COBOL |
 |
|
|
 |
itdsen
New User
Joined: 20 Sep 2006 Posts: 17 Location: Chennai
|
|
|
|
| 1. yes it should be sections (mandatory) |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 985 Location: Virginia, USA
|
|
|
|
| arunkrishnac wrote: |
Hi,
I want to use the SORT verb in APS-COBOL program. For e.g:
SORT SORT-FILE
... ON ASCENDING KEY SORT-APPL-SEQ-NO
... INPUT PROCEDURE IS 2000-GENERATE-FILE-REQ
... OUTPUT PROCEDURE IS 5000-RETURN-SORTED-RECS
1. Is it mandatory that 2000-GENERATE-FILE-REQ and 5000-RETURN-SORTED-RECS should be SECTIONs?
2. Can I use this SORT statement inside a REPEAT loop?
3. Any other restrictions with the use of SORT verb?[/Search] |
1. Depends on the version of COBOL you are using.
2. Never tried it, sounds like a rather stupid idea.
3. Check the manual for your version of COBOL. |
|
| Back to top |
|
 |
|
|