From: Bret Myrick, Sr. To: All
I am looking for someone who has a PC batch file that will start emulation and sign on to the AS/400 and transfer a file from or to the PC side and then sign back off. I need to do this so I am not constantly bothered by a few users here who must each do this several times a day. It is not that I do not like helping them, but I am in the middle of converting every single package we have to native and to a new canned software package as well and must be finished soon.
From: David Romaine To: Bret Myrick, Sr.
You can use the STARTPCS.BAT file in your PCS directory and modify it from there. You will need to set up your file transfer requests, of course, in advance. There are PC Support commands for transferring files without any intervention: RFROMPC and RTOPC, I believe. They are documented in the PC Support Technical Reference. If I've left this too vague, ask for more!
From: Ted Holt To: Bret Myrick, Sr.
I have a couple of PC batch files that transfer my EDI stuff back and forth between the AS/400 and PC. To use them, you still have to sign on when the router starts up. Are you trying to bypass the sign-on?
From: Bret Myrick, Sr. To: Ted Holt
As for the batch file...I already have modified it so that I bypass the common user ID and the password via a *.dat file. What I want is to only start the router and then be able to RFROMPC and RTOPC from within a batch file and not even display the sign-on or menu. If you have a better way of doing this, then let me know.
From: Ted Holt To: Bret Myrick, Sr.
I'm no guru with PC Support, but I've started using it quite a bit lately, and I'm learning. I created my transfer requests interactively, saving the descriptions. Then I built a couple of batch files to execute them. 4a shows what I use to transfer a file from the AS/400 to the PC.
I'm no guru with PC Support, but I've started using it quite a bit lately, and I'm learning. I created my transfer requests interactively, saving the descriptions. Then I built a couple of batch files to execute them. Figure 4a shows what I use to transfer a file from the AS/400 to the PC.
ROUTER.BAT starts the router, getting the user ID and password from a .DAT file, as you mentioned. I just learned how to do that this morning. CATINV means CATINV.TTO, the saved transfer request.
ABORT.BAT is a little utility I got out of PC Magazine. If something goes wrong, like maybe the router never opens, it stops execution of the batch file. ABORT.BAT is listed in 4b.
ABORT.BAT is a little utility I got out of PC Magazine. If something goes wrong, like maybe the router never opens, it stops execution of the batch file. ABORT.BAT is listed in Figure 4b.
To transfer a file from the PC up to the AS/400, I use the batch file shown in 4c.
To transfer a file from the PC up to the AS/400, I use the batch file shown in Figure 4c.
TOAS400 means TOAS400.TFR, the transfer request.
These aren't elegant, and I'm sure someone else can improve on them, but they work great for me. I hope they help you.
TechTalk: PC Support: Automatic Transfer
Figure 4A Batch file to transfer from AS/400 to PC
Figure 4a: Batch File to Transfer From AS/400 to PC @REM Transfer CAT EDI invoices to PC disk A: SET PATH=%PATH%;C:PCS; c: cd pcs E5250AH CALL ROUTER STARTFLR CFGFLR @IF NOT EXIST I:RTOPCB.EXE ABORT I:RTOPCB stx12CATINV
TechTalk: PC Support: Automatic Transfer
Figure 4B Batch file to abort execution
Figure 4b: Batch File to Abort Execution @REM ABORT.BAT -- DISPLAY A MESSAGE AND END BATCH PROCESSING @IF NOT %1!==! ECHO %1 %2 %3 %4 %5 %6 %7 %8 %9 @ECHO Operation aborted.
TechTalk: PC Support: Automatic Transfer
Figure 4C Batch file to transfer from PC to AS/400
Figure 4c: Batch File to Transfer From PC to AS/400 @REM Transfer incoming EDI transactions to AS/400 SET PATH=%PATH%;C:PCS; cd pcs E5250AH CALL ROUTER STARTFLR CFGFLR @IF NOT EXIST I:RFROMPCB.EXE ABORT I:RFROMPCB stx12TOAS400
LATEST COMMENTS
MC Press Online