Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADP download skiping pages

Status
Not open for further replies.

daytona1

Programmer
Mar 29, 2007
3
US
New user, and need some help... we download data from ADP to a Procomm terminal screen to capture data. Everything works fine, except sometimes the page will "hang up" or "skip" pages. It might go from page 25 to 30 "just an example". Therefore we are not getting a good download. Below is a few lines of the script:

func LoginAdp:integer
param string p_strUserName
param string p_strPassword

transmit "^M"

waitfor "login" NORM_TIMEOUT
if success
goto Login
endif

waitfor "user id" NORM_TIMEOUT

Login:

transmit p_strUserName ;USERID
transmit "^M"
pause 3

transmit p_strPassword;PASSWORD
transmit "^M"

waitfor "Function" NORM_TIMEOUT
if Failure
return 0
endif

if 1 == 0
;ChangePwd(p_strDealerNum)
endif

pause SHORT_TIMEOUT
sendvkey VK_RETURN

return 1
endfunc

proc adpSetup
call ResetEvents
set terminal type VT220
set terminal keyboardfile VT220_KBD
set terminal columns 132
set terminal rows 25
set terminal sbpages 1300




when target PAGE_EVENT "Press any Key" call TransmitEnterKey
when target EXIT_EVENT "F3=EXIT" call TransmitF3


;when USEREXIT call Exit_User
endproc

Thanks in advance for any help!
 
How are you storing this data? Are you capturing to a file or storing the scroll back buffer?

When logged in to the host, is it the host that is pausing or skipping pages?
 
Thanks... the scroll back buffer gets to about 64k & then writes to a file, also the host might be pausing. When this happens, we have to start over. A real mess.
 
You might want to consider working a 'when quiet' into your code. If the host pauses for too long of a time period, you can automate restarting the process.

I usually don't use the capture buffer, and send data directly to a capture file, but that is a personal preference, so it may make no difference on what you're trying to accomplish.
 
If you follow the same steps manually, do you still see the problems? That could help determine if it is a problem in your script or somewhere else between Procomm and the other system.

 
are you capturing the output of ENG statements?

if so, are you using "NOPAGE"?

I finally decided on having to use paged output and sending a "^M" at the end of each page.

if i'm way off, my apologies :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top