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?
Copy data into notepad using JCL?
-
- New Member
- Posts: 5
- Joined: Fri Aug 30, 2013 12:27 pm
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Copy data into notepad using JCL?
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.
If JCL is not a constraint Transfer the dataset using FTP to .txt file.
zprogrammer
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Copy data into notepad using JCL?
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?
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.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute