I have the following string C:\aaa\bbbbbbbb\cc\ddddddddd\e\fffffff\
I need to get the string
C:\aaa\bbbbbbbb\cc\ddddddddd\e\
and then the string
C:\aaa\bbbbbbbb\cc\ddddddddd\
and then the string
C:\aaa\bbbbbbbb\cc\
and then the string
C:\aaa\bbbbbbbb\
and then the string
C:\aaa\
and then the string
C:\
Solved with following code.
>>SOURCEFORMATISFREEIDENTIFICATIONDIVISION.program-id.INSPECT2isinitial.ENVIRONMENTDIVISION.CONFIGURATIONSECTION.REPOSITORY.FUNCTIONALLINTRINSIC.DATADIVISION.WORKING-STORAGESECTION.01wDIRpicx(60)value'C:\aaa\bbbbbbbb\cc\ddddddddddddddd\e\fffffff\g\hhhhh\'.01wIndpic999valuezero.PROCEDUREDIVISION.displaywDIRat0101acceptomittedmovereverse(wDIR)towDIRperformvaryingwIndfrom3by1untilwInd>10inspectwDIRreplacingfirst'\' by spaceinspectwDIRreplacingcharactersbyspacebeforeinitial'\'displayreverse(wDIR)atlinewIndcol01acceptomittedend-performgoback.
A new question.
I have the following string C:\aaa\bbbbbbbb\cc\ddddddddd\e\fffffff\
I need to get the string
C:\aaa\bbbbbbbb\cc\ddddddddd\e\
and then the string
C:\aaa\bbbbbbbb\cc\ddddddddd\
and then the string
C:\aaa\bbbbbbbb\cc\
and then the string
C:\aaa\bbbbbbbb\
and then the string
C:\aaa\
and then the string
C:\
Solved with following code.
Screenshot attached.
Ciao.