Hi
Team, can someone help me to get some logic for REXX. I have requirement that I need to search in my cobol program if REDEFINE keyword is used, and if yes i need to pull its whole structure with its parent item. Like in below case i need to pull all below four lines as there is REDEFINES used.
As of now i have coded the logic to find the REDEFINES keyword but don't know how to fetch above and below set of lines. Please help.
01 A PIC X(10)
01 B REDEFINES A
02 B PIC X(5)
02 B PIC X(5)