If Pos('\IBMCPP',Translate(Value('PATH',,'OS2ENVIRONMENT'))) > 0 Then iccdrive = Translate(Substr(Value('PATH',,'OS2ENVIRONMENT'),Pos('\IBMCPP',Translate(Value('PATH',,'OS2ENVIRONMENT')))-2,2))
If iccdrive = '' Then Do
Say "No path found for the OS/2 IBM CSet/2 Compiler, please enter the drive."
Say "Example) C:"
Parse Upper Pull iccdrive
iccpath=iccdrive||"\IBMCPP"
Say "OS/2 IBM CSet/2 Compiler DRIVE =" iccdrive
Say "OS/2 IBM CSet/2 Compiler PATH =" iccpath
Say "Is OS/2 IBM CSet/2 Compiler in drive" iccdrive"?(Y/N)"
Parse Upper Pull response
If response <> 'Y' Then Do
iccdrive = ''
Say "Re-enter the Drive that contains OS/2 IBM CSet/2 Compiler."
Parse Upper Pull iccdrive
iccpath = iccdrive||'\IBMCPP'
End
End
Else Do
Say "Path found for the OS/2 IBM CSet/2 Compiler."
iccpath = iccdrive||'\IBMCPP'
Say "OS/2 IBM CSet/2 Compiler DRIVE =" iccdrive
Say "OS/2 IBM CSet/2 Compiler PATH =" iccpath
Say "Is OS/2 IBM CSet/2 Compiler information correct?(Y/N)"
Parse Upper Pull response
If response <> 'Y' Then Do
iccdrive = ''
Say "Re-enter the Drive that contains IBM CSet/2 Compiler."
Parse Upper Pull iccdrive
iccpath = iccdrive||'\IBMCPP'
End
End
Do Until file.0 <> 0
ret = SysFileTree(iccpath, 'file', 'D')
If file.0 = 0 Then Do
'CLS'
Say "The OS/2 IBM CSet/2 Compiler is not in drive" iccdrive"."
Say "Do you want to exit from IBM CSet/2 Compiler installation?(Y/N)"
Parse Upper Pull response
If Substr(response,1,1) = 'Y' Then Call Endit
iccdrive=''
Say "Please re-enter the drive for OS/2 IBM CSet/2 Compiler."
Say "Example) C:"
Parse Upper Pull iccdrive
iccpath=iccdrive||"\IBMCPP"
Say "OS/2 IBM CSet/2 Compiler DRIVE =" iccdrive
Say "OS/2 IBM CSet/2 Compiler PATH =" iccpath
Say "Is OS/2 IBM CSet/2 Compiler in drive" iccdrive"?(Y/N)"
Parse Upper Pull response
If response <> 'Y' Then Do
iccdrive = ''
Say "Re-enter the Drive that contains OS/2 IBM CSet/2 Compiler."