Creating PDS file via FTP command line



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Creating PDS file via FTP command line

Postby creily » Wed Oct 27, 2010 8:45 pm

I need to create a PDS with these attributes via FTP command line: Organization = PO, Record Format = FB, Record Length = 32000, Block Size = 32000

I have attempted to use the following commands and get these responses, but am not sure if they are correct or being executed in the correct order. Any direction would be appreciated.

1. From Windows cmd line, start FTP and authenticate.

2. quote site filetype=PDS
Filetype parameter (PDS) is invalid. Filetype ignored.

3. quote site cond=catlg recfm=fb lrecl=32000 blksize=32000
SITE command was accepted

4. quote site directory=25 primary=1500 secondary=250
SITE command was accepted

5. quote site quotesoverride
SITE command was accepted

6. MKDIR TEST
Mkd fails: [Username].TEST User not authorized
creily
 
Posts: 1
Joined: Wed Oct 27, 2010 8:28 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Creating PDS file via FTP command line

Postby MrSpock » Wed Oct 27, 2010 9:02 pm

It took a few attempts, but this finally worked:

I used the quote "site ..." command to set the basics ...

>quote "site lr=32000 blk=32000 directory=25 primary=1500 secondary=250 cy"

then

>mkd XXXX

257 "'<hlq>.XXXX'" created.

>cd XXXX

250 The working directory "<hlq>.XXXX" is a partitioned data set

>put file MEMBER
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post