how to transfer the file from pc to mainframe??

Answer Posted / richard

how do you write a vbscript to do this using aviva
interface or eiconbasic macro..none work right now

Sub Main()

rc% = session.connect(false)
msgbox rc%
rc% = session.hostname
Msgbox rc%


pcfile = "c:\Documents and Settings\e454221
\Desktop\testblk.txt"

FileTransfer.PCFIle = pcfile
FileTransfer.scheme = "SendTXT_TSO"
FileTransfer.hostfile = "e454221.testxfer.clist"
rc% = FileTransfer.send(FALSE)
msgbox rc%
rc% = filetransfer.status
msgbox rc%

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the Purpose of POINTER Phrase in STRING command in COBOL?

721


What is amode(31)

722


What are literals?

630


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1871


Which division and paragraphs are mandatory for a COBOL program?

709






Difference between cobol and cobol-ii?

704


example for sub strings ? and refernce modifications whit output pls

1846


What is the difference between Global and External Variables?

666


What are the different rules of SORT operation?

698


Which mode is used to operate the sequential file?

666


What is perform what is varying?

707


Describe the cobol database components?

680


What are 77 levels used for?

659


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


What is a SSRANGE and NOSSRANGE?

820