Hello:
At work, each morning we receive large amount of data from banks via ProComm Plus 32. A aspect script is executed from a winbatch script.
80% of the time we get all the bank data.
20% The ProComm runs, I can see the data coming across on the screen then the ProComm script ends. The file never gets processed because it is missing trailer data info.
Here is a copy of the script.
Disclaimer: I did not write this script.
;
;Recorded script. Editing may be required.
proc main
set modem connection "U.S. Robotics 56K Voice INT PnP"
;Set xmodem overwrite ON
;Set terminal rxcr CR_LF
Set duplex full
clear
locate 0 0
dialnumber DATA "XXXXXXXXXXXXXXXX"
Set capture autostart ON
Set Capture Overwrite On
Set capture recordmode SCREEN
Set Capture file "XXXXXXX.txt"
waitfor "please type your terminal identifier"
If failure
Hangup
PWexit
EndIf
transmit "O"
waitfor "please log in: "
transmit "XXXXXXXX^M"
waitfor "password: "
transmit "XXXXXXXXXXX^M"
waitfor " =====> "
transmit "connect^M"
waitfor " ^M"
transmit "XXXXXXXXXX^M"
waitfor "IIIIIIIIIIIIIIIII ^M"
transmit "XXXXXXXXXXXX^M"
waitfor "99 ACF2/CICS SIGN-ON COMPLETE^M^J^M^J^M^J^J"
transmit "mcon^M"
waitfor "ELP END BRSTAT BALPBX^M^J"
transmit "balpbx^M"
waitfor "NTER DATE (MMDDYY) OR `"STATUS`"^M^J"
transmit "^M"
waitfor "TANDARD OPTIONS (Y OR N)^M^J"
transmit "^M"
waitfor "NTER SELECTION CRITERIA (BANK= OR ACCT=)^M^J"
transmit "^M"
waitfor "NTER TRANSMISSION FORMAT (B--FOR BALANCES, D--FOR BALANCES + DETAIL)^M^J"
transmit "d^M"
waitfor "NTER MINIMUM AMOUNT FOR ACCUMULATION (999.99)^M^J"
transmit "^M"
waitfor "LEASE DEPRESS YOUR CAPTURE KEY TO BEGIN TRANSMISSION^M^J"
transmit "^M"
waitfor "RANSMISSION COMPLETE -- PLEASE PRESS THE RETURN KEY^M^J"
transmit "signoff^M"
Hangup
pwexit
endproc
At work, each morning we receive large amount of data from banks via ProComm Plus 32. A aspect script is executed from a winbatch script.
80% of the time we get all the bank data.
20% The ProComm runs, I can see the data coming across on the screen then the ProComm script ends. The file never gets processed because it is missing trailer data info.
Here is a copy of the script.
Disclaimer: I did not write this script.
;
;Recorded script. Editing may be required.
proc main
set modem connection "U.S. Robotics 56K Voice INT PnP"
;Set xmodem overwrite ON
;Set terminal rxcr CR_LF
Set duplex full
clear
locate 0 0
dialnumber DATA "XXXXXXXXXXXXXXXX"
Set capture autostart ON
Set Capture Overwrite On
Set capture recordmode SCREEN
Set Capture file "XXXXXXX.txt"
waitfor "please type your terminal identifier"
If failure
Hangup
PWexit
EndIf
transmit "O"
waitfor "please log in: "
transmit "XXXXXXXX^M"
waitfor "password: "
transmit "XXXXXXXXXXX^M"
waitfor " =====> "
transmit "connect^M"
waitfor " ^M"
transmit "XXXXXXXXXX^M"
waitfor "IIIIIIIIIIIIIIIII ^M"
transmit "XXXXXXXXXXXX^M"
waitfor "99 ACF2/CICS SIGN-ON COMPLETE^M^J^M^J^M^J^J"
transmit "mcon^M"
waitfor "ELP END BRSTAT BALPBX^M^J"
transmit "balpbx^M"
waitfor "NTER DATE (MMDDYY) OR `"STATUS`"^M^J"
transmit "^M"
waitfor "TANDARD OPTIONS (Y OR N)^M^J"
transmit "^M"
waitfor "NTER SELECTION CRITERIA (BANK= OR ACCT=)^M^J"
transmit "^M"
waitfor "NTER TRANSMISSION FORMAT (B--FOR BALANCES, D--FOR BALANCES + DETAIL)^M^J"
transmit "d^M"
waitfor "NTER MINIMUM AMOUNT FOR ACCUMULATION (999.99)^M^J"
transmit "^M"
waitfor "LEASE DEPRESS YOUR CAPTURE KEY TO BEGIN TRANSMISSION^M^J"
transmit "^M"
waitfor "RANSMISSION COMPLETE -- PLEASE PRESS THE RETURN KEY^M^J"
transmit "signoff^M"
Hangup
pwexit
endproc