+ Reply to Thread
Results 1 to 5 of 5

Thread: WRKJOBSCDE to outfile

  1. #1
    Guest.Visitor Guest

    Default WRKJOBSCDE to outfile

    Hi! Is there an API to run WRKJOBSCDE to outfile instead of to *PRINT.

  2. #2
    Guest.Visitor Guest

    Default WRKJOBSCDE to outfile

    Here's a link to the information you need. Search the books for WRKJOBSCDE API. http://publib.boulder.ibm.com/pubs/h...ne/v4r3eng.htm

  3. #3
    Guest.Visitor Guest

    Default WRKJOBSCDE to outfile

    Would suggest using the Work Management API List Job Schedule Entries (QWCLSCDE). Puts the entries into a user space. Very quick and easy to manipulate.

  4. #4
    Guest.Visitor Guest

    Default WRKJOBSCDE to outfile

    Another idea is to use the WRKJOBSCDE command with the output parm of *PRINT, then do a CPYSPLF command to copy the output to a file.

  5. #5
    Guest.Visitor Guest

    Default WRKJOBSCDE to outfile

    While WRKJOBSCDE OUTPUT(*PRINT) and CPYSPLF can sometimes get the job done, using this approach is not considered a formal programming interface that is necessarily maintained across releases (like is done for outfiles and APIs). Having the program access a printed report can introduce additional complexity such as the date format can change per run of report (CHGJOB DATFMT), the date separators can change per run (DATSEP), the time separators can change per run (TIMSEP), the column headings can change per run (different national languages in effect), the column locations can change per run (different national languages in effect or report format changes due to a new release or PTF), etc. Using the report approach is usually OK for one-time types of things; but can require rework when installing new releases, being used in a multi-national setting, etc.

+ Reply to Thread

Similar Threads

  1. FTP outfile
    By dacust in forum General
    Replies: 2
    Last Post: 01-15-2004, 09:51 AM
  2. API for WRKJOBSCDE
    By Guest.Visitor in forum Application Software
    Replies: 4
    Last Post: 08-18-2000, 07:44 AM
  3. SQL Select to an Outfile
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 01-13-1999, 06:48 AM
  4. DSPOBJD outfile fix
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

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