Page 1 of 1

Copy data into notepad using JCL?

Posted: Wed Jul 23, 2014 3:39 pm
by zOSHelpForums
Hi,

I've a data set which contains some data. I want to copy the same data into notepad using JCL. Is it possible. If yes, how can I do that?

Re: Copy data into notepad using JCL?

Posted: Wed Jul 23, 2014 6:46 pm
by zprogrammer
Yes, It is possible.A mail sending job to send the data set at attachment which is of .txt format.

If JCL is not a constraint Transfer the dataset using FTP to .txt file.

Re: Copy data into notepad using JCL?

Posted: Wed Jul 23, 2014 7:26 pm
by Robert Sample
If you want JCL to directly transfer data into Notepad on your local PC, then the answer is that you CANNOT do that -- period. If you run an FTP, for example, on the mainframe then it must transfer to a server and desktop PCs are not set up to be servers at most sites. And FTP (started from the PC) or email will get the data in the data set to your PC but you must then open the transferred data in Notepad -- you won't be able to magically have the data appear in Notepad merely because you transferred it.

Re: Copy data into notepad using JCL?

Posted: Wed Jul 23, 2014 10:10 pm
by byelen
Robert is absolutely correct. However, you could (if it's within the parameters of your company's network security) run a FTP server on a Windows desktop and have a batch mainframe job do an FTP transfer. Another possibility, would be to write a windows based app that would ftp the dataset from the mainframe, and either write the contents into a new .txt dataset, or put it on the clipboard. If you are using Java (as an example) there is a clipboard class as well as open source FTP libraries that are fairly easy to use.