ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

exporting PF-SRC to a database ACCESS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • exporting PF-SRC to a database ACCESS

    I'm finishing my actual job ... my factory is closing cause this crisis ... I need to export my as400 source program to use in my future jobs .... I hope ..... My problem is to reference single member of the source file.
    Thank you in advance
    Nicolas

  • #2
    Re: exporting PF-SRC to a database ACCESS

    if you have WDSC, RDi or RDp you can download them as iseries projects to your PC and then zip 'em up on a thumb drive. other than that there's always the venerable FTP using MGET mylib/qrpglesrc.* for example. for a single member just use GET mylib/qrpglesrc.mbrname
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: exporting PF-SRC to a database ACCESS

      this would work in a pinch...
      I like to change the extension to the type -- example: rpgle sqlrpgle clle ...etc but you can mod this to take care of that.

      PHP Code:
       pgm                                                                                  
                                                                                            
                    DCL        
      VAR(&NEWNAMETYPE(*CHARLEN(25)                            
                    
      DCLF       FILE(QTEMP/OUTFILE)                                          
                       
      monmsg cpf0000                                                       
                    DSPFD      FILE
      (JAMIELIB/SAVSRCTYPE(*MBRLIST) +                       
                                 
      OUTPUT(*OUTFILEOUTFILE(QTEMP/OUTFILE)                    
         
      loop:      RCVF                                                                    
                    MONMSG     MSGID
      (CPF0864EXEC(GOTO CMDLBL(EXIT))                       
                    
      CHGVAR     VAR(&NEWNAMEVALUE('/jamie/' || &mlname *tcat '.txt')       
                    
      CPYTOIMPF  FROMFILE(JAMIELIB/SAVSRC &MLNAME) +                          
                                 
      TOSTMF(&NEWNAMEMBROPT(*REPLACE) +                        
                                 
      STMFCODPAG(*PCASCIIRCDDLM(*CRLF) +                       
                                 
      DTAFMT(*FIXEDSTRDLM(*NONE)                               
                    goto 
      loop                                                               
        
      EXIT:       ENDPGM 
      also this is the best FTP in the world!
      it connects to the iseries and allows with the click of the mouse to view folders


      give it a look.

      jamie
      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment


      • #4
        Re: exporting PF-SRC to a database ACCESS

        Sorry to hear that Nicolas... good luck for the future.
        Regards

        Kit
        http://www.ecofitonline.com
        DeskfIT - ChangefIT - XrefIT
        ___________________________________
        There are only 3 kinds of people -
        Those that can count and those that can't.

        Comment


        • #5
          Re: exporting PF-SRC to a database ACCESS

          @ kit - you sentimental devil!

          I should have said that myself... Please let us know if there is anything you need to help.
          I can offer you some free hosting and a bit of help if you'd like to put up a semi interactive resume..

          please let me know
          jamie
          All my answers were extracted from the "Big Dummy's Guide to the As400"
          and I take no responsibility for any of them.

          www.code400.com

          Comment


          • #6
            Re: exporting PF-SRC to a database ACCESS

            Excuse me for the late of my answer. Thank you so much everybodies.
            Thank you Jamie I will keep your help for my future job. thnks Kit.
            nicolas

            Comment

            Working...
            X