+ Reply to Thread
Results 1 to 4 of 4

Thread: Passing AS/400 query source to PC text editor

  1. #1
    Guest.Visitor Guest

    Default Passing AS/400 query source to PC text editor

    We have a need to be able to email AS/400 query source code to another location to be viewed in a PC text editor. Does anyone know what is the most efficient way to do this?

  2. #2
    Guest.Visitor Guest

    Default Passing AS/400 query source to PC text editor

    Are you dealing with SQL or Query/400 ?

  3. #3
    Guest.Visitor Guest

    Default Passing AS/400 query source to PC text editor

    Jennifer, You can copy the source to a document using CPYTOPCD. This is the PDM option I use: CPYTOPCD FROMFILE(&L/&F) TOFLR('&L/&F') FROMMBR(&N) TODOC('&N.&S') REPLACE(*YES) You can then set the name of the sent attachemnt with: CHGDOCD DOC('&N.&S') FLR('&L/&F') DOCD('&N.&S') Then use the SNDDST command to send the file. The command will look like: SNDDST TYPE(*DOC) ?TOINTNET((user@domain.com)) DOC(&N.&S)FLR('&L/&F') The first step will place the source file with a name like srcmbr.qry in a folder with a name like library/qqrysrc. The second step will cause the e-mail to use the file name as the attachment name. The TOINTNET parameter became available on V4R1 or V4R2 and requires the following system directory entry: ADDDIRE USRID(INTERNET USERS) SYSNAME(TCPIP) USRD('Context switching entry') USER(*NONE) MSFSRVLVL(*USRIDX) PREFADR(NETUSRID *IBM ATCONTXT) David Morris

  4. #4
    Guest.Visitor Guest

    Default Passing AS/400 query source to PC text editor

    I am trying to do something similar, but I can't get the Document name to be included in the MIME header for the attachment ... Do you know if there is something to set up for that ? (the document description DOCD is sent as the subject of the e-mail)

+ Reply to Thread

Similar Threads

  1. Passing Parameters to Query
    By ukpi1b in forum General
    Replies: 10
    Last Post: 12-15-2004, 09:05 AM
  2. How do I ??? paste over text in the editor????
    By Guest.Visitor in forum Dev Tools
    Replies: 2
    Last Post: 07-26-2002, 02:17 AM
  3. Dymanic OPQRYF Source Entery Editor
    By Guest.Visitor in forum Application Software
    Replies: 4
    Last Post: 12-13-1999, 11:44 AM
  4. Passing Variables in query
    By Guest.Visitor in forum Programming
    Replies: 4
    Last Post: 03-03-1999, 11:53 AM
  5. Need a text editor for my AS400 data
    By daly.michael@verizon.net in forum Application Software
    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