How to import a text file from windows to Mainframe PS?

I want to know that is it possible by using COBOL programming?

Showing Answers 1 - 9 of 9 Answers

There are many, many ways.You can have your COBOL program link to the FTP program to grab a file.You can have your COBOL program send an MQ message to the pc to ftp the file to the MVS.You can have your COBOL program issue and EXCI command through CICS to grab the PC file.You can have your COBOL program format JCL to FTP GET and sub it to the int reader.Alternately, you could forget about the COBOL program and go with a PC trigger. Set up the PC script to poll a directory for a certain file. When it sees it, the script can do several things - 1) FTP a job to MVS to do an FTP get, (This has the added advantage of allowing batch processing on the file)2) FTP the dataset to MVS within the script3) Set an MQ trigger on MVSAs I said, there are many ways of doing this. The best on depends on what you plan on doing with the file once you get it.

RTM,kk

  Was this answer useful?  Yes

Rajiv Mohapatra

  • Jul 16th, 2007
 

Not going by the previous complicated ways u can check ur emulator software for file uploading facility.
Go into the option 6 in the TSO screen then in ur emulator's menu select Transfer File -> Upload File from PC and browse the file u want to upload and specify the name of the PS.

However the options are emulator dependent, so u might hav to search a little for the particular option 

There is also a similar option for download from PS to a file on PC

  Was this answer useful?  Yes

PRADEEP..CR

  • Apr 16th, 2014
 

After opening mainframe, by default it ill show start menu. In start menu select command option, now goto TOOL bar-> there you can able to see one symbol with message" send file to host". Click on that->you will one window. enter your input file and ps in single quoted and click on Receive button.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions