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 amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

921


A table has two indexes defined. Which one will be used by the SEARCH?

1028


What is perform what is varying?

920


how can i see junk values in dclgen or in hostvariable of comp ?

2758


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

861


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2257


Which is not true about evaluate statement

2105


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1989


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5602


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

943


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2290


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5430


What is the difference between comp and comp-3?

903


What is static and dynamic call in cobol?

793


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

912