Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2018
    Posts
    28

    Question file format for folder compare

    I have a folder where every file has the same file type. I do a folder compare to see only the file content differences. For every different file compare that is opened, I need to go to the file format and select the same one (COBOL). Is there a way to pick the file type applied to every file compare in the folder ?

    For example. I have a folder with 100 COBOL programs and compare against another folder with 100 COBOL programs.
    I do not want to select the file format for every compare difference.


    Thanks.

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,384

    Default

    Hello,

    The default cobol extensions are "*.cbl;*.cob;*.cpy*". Do your files match these extensions? If not, what extensions do they use, and should they globally be treated as cobol (regardless of folder)? If so, you can add them to the extensions list in the Tools menu -> File Formats dialog, select COBOL, General tab. If the COBOL format has been edited, you can click Factory Defaults to restore the default masks and grammar items.

    To more directly handle your question: yes, if you create a clone of the COBOL format (Tools menu -> File Formats dialog, select COBOL and Save As a copy). Assign the copy a file mask of *.*, but then uncheck/disable it globally in this dialog's format list. This way, it is associated for any file type, but disabled by default for any future sessions.
    Then go to your specific Folder Compare session, Session menu -> Session Settings, Misc tab, and in the Enabled File Formats list, check the cloned Cobol (enabling it) and uncheck all other formats. This leaves this session with it enabled, for all files, and disables any other format.
    Aaron P Scooter Software

  3. #3
    Join Date
    Jan 2018
    Posts
    28

    Red face fixed....

    Thanks! I had to add a mask filter of *.* for these Source files. It is not always COBOL so I just created a new one.
    It could be JCLS or other mainframe source code files. When I view the extension on the folder compare for these
    files it is blank. That makes sense because I am reading them directly from the mainframe instead of PC.

    Wow. I am so happy now. The other post is duplicate. I was not sure you would spot this so I placed the question in a another thread. I tried looking for the delete option on here.


    Quote Originally Posted by Aaron View Post
    Hello,

    The default cobol extensions are "*.cbl;*.cob;*.cpy*". Do your files match these extensions? If not, what extensions do they use, and should they globally be treated as cobol (regardless of folder)? If so, you can add them to the extensions list in the Tools menu -> File Formats dialog, select COBOL, General tab. If the COBOL format has been edited, you can click Factory Defaults to restore the default masks and grammar items.

    To more directly handle your question: yes, if you create a clone of the COBOL format (Tools menu -> File Formats dialog, select COBOL and Save As a copy). Assign the copy a file mask of *.*, but then uncheck/disable it globally in this dialog's format list. This way, it is associated for any file type, but disabled by default for any future sessions.
    Then go to your specific Folder Compare session, Session menu -> Session Settings, Misc tab, and in the Enabled File Formats list, check the cloned Cobol (enabling it) and uncheck all other formats. This leaves this session with it enabled, for all files, and disables any other format.

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,384

    Default

    That's ok; no need to delete, since other users might find the thread and can be directed vice versa.
    Aaron P Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •