IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Isit possible to downLoad a DS directly from SPOOL using FTP


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

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Mar 23, 2009 7:09 pm
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: 6966
Location: porcelain throne

PostPosted: Tue Mar 24, 2009 4:15 pm
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: 1020
Location: India

PostPosted: Tue Mar 24, 2009 4:36 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 24, 2009 5:07 pm
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: 1020
Location: India

PostPosted: Wed Mar 25, 2009 12:34 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Mar 25, 2009 4:50 pm
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: 1020
Location: India

PostPosted: Mon Mar 30, 2009 9:51 am
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Mar 30, 2009 4:57 pm
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: 1020
Location: India

PostPosted: Mon Mar 30, 2009 5:03 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Search string in job at regular Spool... CLIST & REXX 0
No new posts Capturing logs from spool dd JCL & VSAM 6
No new posts No sysout coming in spool JCL & VSAM 4
No new posts Unable to download the JDBC driver to... Java & MQSeries 1
Search our Forums:

Back to Top