Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Facing Problem while writing the LIST Command !!!

Status
Not open for further replies.

dearjay

Programmer
Dec 19, 2007
35
IN
Dear All,

I am trying to get the list of the dataset names from the Remote server to local server. I want to copy the list of files into dataset at local server. Can somebody help me to get this done please?

===============================
IP ADDRESS
USER ID
PASSWORD
REMOTE HOST NAME
LS <name> <(DISK> - Command format (for example)
LS * Disk name
===============================

I am trying with the above command, but getting
Std Return Code = 20000, Error Code = 00007
Please let me know in case if you have any idea about the same.
Thanks,
Nits
 
See Lawnboys response here, and I concur:

thread581-1436327
 
If this is for an ftp transfer...

Make sure you are in the directory you want to transfer to. Then,
ftp x.x.x.x
pwd
cd (directory)
ls
mget filename*

Okay, I tried...

Burt
 
Dear Burt,

I have followed your opinion and tested, i am getting the list on local server in SYSOUT, but i need the same file list into dataset on local server, Please suggest,

Thanks,
Nits
 
Try using a terminal emulator such as TeraTerm or PuTTy, and just copy and paste the local list to notepad, and either email or VPN into the remote and copy the list that way. Is this what you mean? What kind of OS are we talking here? UNIX? Windows?

Burt
 
Dear Burt,

OS is UNIX.

Can you please provide me some sample code if possible?

Regards,
Nits
 
Dear Burt,

From UNIX to Mainframe

Regards,
Nits

 
Not sure what you mean by dataset names...ls will show you the files and directories within the directory you are in. pwd will tell you the directory you're in. format will give you options, and some options will allow you to see all disks on the system. init 6 will bring the OS down, and bring you to the obp prompt, and you can probe-fcal-all or probe-scsi-all from there to also see disks.

Burt
 
yeh, Mr. Burt, you are right, i am also talking abt files only.... so what i want to do is, all the files (which are avaiable in UNIX folder) wants to get copied in dataset instead of displaying them in SYSOUT. I mean output of the LIST command want to copy into output dataset.. ,

Yes i am also interested to know that option which allows me to see all files in one dataset as output

Please suggest,

Regards,
Nit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top