Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Isit possible to downLoad a DS directly from SPOOL using FTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Mon Mar 23, 2009 7:09 pm    Post subject: Isit possible to downLoad a DS directly from SPOOL using FTP
Reply with quote

Hi,

I have dataset in spool which i nearly 50MegaBytes, which is result of a JOB. How can i download that dataset, which is in the spool using FTP.

I can do XDC, save it as a dataset and download it to windows(documentation purposes).

I want to know, is it possible to download a dataset directly from SPOOL using FTP.

I can use the following method to connect to the SPOOL
ftp IP Address
User ID
Password
quote site filetype=jes

Sushanth
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Mar 24, 2009 4:15 pm    Post subject:
Reply with quote

Sushanth,

if the FTP code is correct, it seems that you have answered your own question.

Is this 'DS' ever printed? If not, why not change the DD statement to output a temp file which the next step would FTP?
Then this 'large' file would not be in the JES SPOOL,
which is very sensitive to size, and rather important (SPOOL usage) to your system?
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Tue Mar 24, 2009 4:36 pm    Post subject:
Reply with quote

Dino,

There are soo many finished jobs in my SPOOL(SDSF-->H). Like
Code:
PREFIX=******  DEST=(ALL)  OWNER=HXSULL**  SORT=JNUM/D  FILTERS=1  SYSNAME=   
NP   JOBNAME  C JNUM  MAX-RC     PROGRAMMER-NAME      START-TI END-TIME TOT-REC
     HXSULLXX X  6093 CANCELED   TEST                  0:00:00  0:00:00      24
     HXSULLXX X  6053 ABEND S322 TEST                  5:56:37  5:59:53     602
     HXSULLXX X  5672 CC 0000    TEST                  4:08:48  4:09:03     602
     HXSULLA  X  5671 CC 0000    SUSHANTH-             4:08:13  4:08:13      58
     HXSULLXX X  5657 CC 0008    TEST                  4:00:26  4:01:10     599
     HXSULLXX X  5545 CC 0000    TEST                  3:13:39  3:14:59     397
     HXSULLXX X  5545 CC 0000    TEST                  3:13:39  3:14:59     601
     PDAUTIL  X  5519 CC 0000                          3:07:54  3:08:12     259
     HXSULLXX X  5518 CC 0000    TEST                  3:07:48  3:07:54     701
     HXSULLXX X  5368 CC 0000    TEST                  2:40:31  2:41:26     601
     HXSULLXX X  5343 CC 0000    TEST                  2:38:02  2:38:29     601
     HXSULLXX X  5160 CC 0000    TEST                  1:46:14  1:46:28     697
     HXSULLA  X   931 CC 0008    HIHX400A             10:29:52 10:29:55     186


But when i give DIR in FTP

Code:
ftp> dir
200 Port request OK.
125 List started OK
HXSULLA   JOB00931  OUTPUT    4 Spool Files
HXSULLA   JOB05671  OUTPUT    4 Spool Files
HXSULLA   TSU05815  ACTIVE
HXSULLB   TSU05816  ACTIVE
250 List completed successfully.
ftp: 296 bytes received in 0.05Seconds 6.30Kbytes/sec.
ftp>


I see only 2 SPOOL files. What can be the reason for this ?

Iam able to download the file.
Code:
GET JOB00931


Quote:
And,why not change the DD statement to output a temp file which the next step would FTP?

That is exactly what we did yesterday ?{in the beginning we didn't know the file is gonna be that big}


Thank You,
Sushanth Bobby
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8119
Location: East Dubuque, Illinois, USA

PostPosted: Tue Mar 24, 2009 5:07 pm    Post subject:
Reply with quote

Although I'm not sure, I suspect what's happening is you're only getting the jobs whose name consists of your user id plus one character.
Code:
SITE JESOWNER HXSULL*
should allow you access to your entire queue.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Wed Mar 25, 2009 12:34 pm    Post subject:
Reply with quote

Quote:
Although I'm not sure, I suspect what's happening is you're only getting the jobs whose name consists of your user id plus one character.

Robert, You are absolutely correct.

Code:
ftp> quote site jesowner hxsull*
200-operand required on JESOwner parameter.  Parameter ignored.
200-Unrecognized parameter 'hxsull*' on SITE command.
200 SITE command was accepted
ftp>

I am not able to access the entire queue.

Thank You,
Sushanth Bobby
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8119
Location: East Dubuque, Illinois, USA

PostPosted: Wed Mar 25, 2009 4:50 pm    Post subject:
Reply with quote

My fault for not reading the syntax diagram closely enough. Try
Code:
SITE JESOWNER=HXSULL*
I didn't see the equals sign the first time around ... and since the FTP configuration doesn't typically require an equals sign I didn't realize I'd missed it.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Mon Mar 30, 2009 9:51 am    Post subject:
Reply with quote

Robert,

Sorry for the late reply. I got this message
Code:
ftp> quote site jesowner=hxsull*
200-JESINTERFACELEVEL=1. The value of JESOwner cannot be modified.
200 SITE command was accepted
ftp>


JESOwner cannot be modified.

Thank You,
Sushanth Bobby
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8119
Location: East Dubuque, Illinois, USA

PostPosted: Mon Mar 30, 2009 4:57 pm    Post subject:
Reply with quote

With JESINTERFACELEVEL=1, you're out of luck unless you can get your site support group to change it. The Configuration Manual says:
Quote:
Use the JESINTERFACELEVEL statement to specify the FTP-to-JES interface to be used by the installation. JESINTERFACELEVEL 1 uses the JES interface provided in releases prior to Communication Server for OS/390 V2R10. At this level, the FTP user is allowed to submit jobs to JES, retrieve held output matching their logged-in user ID plus one character, and delete held jobs matching their logged-in user ID plus one character.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Mon Mar 30, 2009 5:03 pm    Post subject:
Reply with quote

Thank You Robert.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts How to download JES2 JOB LOG? White.Bai JCL & VSAM 9 Thu Sep 29, 2016 7:34 am
No new posts IPSwitch download problem srajendran2 All Other Mainframe Topics 2 Fri May 27, 2016 12:02 am
No new posts Report output in Spool amitc23 JCL & VSAM 4 Tue Apr 26, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us