[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
SQR continuing before call system using complete
- Subject: SQR continuing before call system using complete
- From: Anne-Marie Matula <amatula@OIT.UMASS.EDU>
- Date: Mon, 14 Feb 2000 16:37:46 -0500
- Importance: Normal
Hi folks
I have a SQR that
1. Opens a file for reading and
Writes all records from that to another file with a sort key appended
2 Uses "call system using" to sort the file:
Let $command_String = 'cmd.exe /c sort /R /+'||TO_CHAR({SATLEN}+1)||' <
c:\ps\temp\satkeyed.txt > c:\ps\temp\satsortd.txt'
CALL SYSTEM USING $command_String #status
3. Opens the sorted file for processing (write certain data from the sorted
file to another file)
Each of those steps are in separate procedures called within begin-program
My problem is it appears that 3 is starting before 2 is completed :(
I vaguely recall a discussion here previously on something similar; I can't
recall when. I've searched some of the archives but can't find. If anyone
can lead me in the right direction to resolving this I'd appreciate it.
Thank you in advance
Anne-Marie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anne-Marie Matula
Student Information System Project
Office of Information Technologies
Whitmore Bldg, University of Massachusetts, Amherst
Phone: 413/577-0685
Fax: 413/545-2150