This is easy by Rexx. Phase 1"Do an EXECIO to read the source into a stem. The parse for the word copy and lines that are not marked with an asterisk at column 7. For each copy member name, create an entry the copies stem. You can make the rest of phases easier if you remove all Cobol reserved words, numbers, special characters, nullify remark lines, etc. Phase 2..N: For each copy and each line scan for the "WORD" (Rexx wise) in the line, and if found - print it.
ITschak On Fri, Mar 22, 2013 at 7:07 PM, Ron Thomas <[email protected]> wrote: > Hello. Could some one let us know how to create a process which extracts > all copybooks from a program and looks in to the copybook library and check > if it exists , if exists reads the copybook variables in the copybook > and search in the program and writes the lines which uses the variable to > a output file. > > Please let us know how we can acheive the same? > > Regards > Ron T > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
