RLSE in ftp locsite



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

RLSE in ftp locsite

Postby crazydoc » Tue Jun 14, 2016 4:51 pm

Good day. In the distribution sets in one of the ask me, use the parameters:
SPACE=(TRK,(65000,15000),RLSE)
. Is it possible to describe something like that when you receive a file via FTP?
crazydoc
 
Posts: 50
Joined: Fri Jul 24, 2015 12:27 pm
Has thanked: 2 times
Been thanked: 0 time

Re: RLSE in ftp locsite

Postby Aki88 » Tue Jun 14, 2016 6:42 pm

Hello,

Afaik, in a mainframe environment, whenever a dataset is to be referred, there is always a mechanism in place which allows a user to tweak the DCB/SPACE parameters.
Couple of thoughts for your query:
a. Have a step in the FTP JCL which defines the dataset in which you want to receive the data; the definition parameters will be governed by JCL rules, hence RLSE will be allowed here.
b. Look at the SEZAINST definitions, you'll be having a member (for eg: EZAFTPAS) which has the default priming parameters defined; though before you do this - highly recommend that you check with your site admin, as these parameters are usually customized site-to-site; and some people might not feel happy with you tweaking a parameter in this PDS.

Hope this helps.
Aki88
 
Posts: 381
Joined: Tue Jan 28, 2014 1:52 pm
Has thanked: 33 times
Been thanked: 36 times

Re: RLSE in ftp locsite

Postby steve-myers » Wed Jun 15, 2016 11:07 am

Just a bit of a warning. The JCL RLSE parameter in SPACE=(...,RLSE) or its equivalent in dynamic allocation does not work the way many people think. RLSE is not a data set attribute. In this JCL no space is released.
//A       EXEC PGM=IEFBR14
//NEWDS    DD  DISP=(,PASS),UNIT=SYSDA,SPACE=(TRK,(50,10,5),RLSE),
//             DCB=(RECFM=FB,LRECL=80),DSN=&SYSUID..SRC
//B       EXEC PGM=IEBDPDTE,PARM=NEW
//SYSPRINT DD  SYSOUT=*
//SYSUT2   DD  DISP=(OLD,CATLG),DSN=*.A.NEWDS
//SYSIN    DD  *
./ ADD NAME=IEFBR14
IEFBR14  RSECT
IEFBR14  AMODE 31
IEFBR14  RMODE ANY
         SR    15,15
         BR    14
         END   IEFBR14

However, space is released in this JCL.
//A       EXEC PGM=IEFBR14
//NEWDS    DD  DISP=(,PASS),UNIT=SYSDA,SPACE=(TRK,(50,10,5)),
//             DCB=(RECFM=FB,LRECL=80),DSN=&SYSUID..SRC
//B       EXEC PGM=IEBDPDTE,PARM=NEW
//SYSPRINT DD  SYSOUT=*
//SYSUT2   DD  DISP=(OLD,CATLG),SPACE=(TRK,1,RLSE),
//             DSN=*.A.NEWDS
//SYSIN    DD  *
./ ADD NAME=IEFBR14
IEFBR14  RSECT
IEFBR14  AMODE 31
IEFBR14  RMODE ANY
         SR    15,15
         BR    14
         END   IEFBR14
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: RLSE in ftp locsite

Postby crazydoc » Thu Jun 16, 2016 7:04 pm

Thanks for the help. In the end, it was decided not to allocate the exact space under taken a dump(was assigned 27gb drive and distributed all of it, even if you take a dump less)
crazydoc
 
Posts: 50
Joined: Fri Jul 24, 2015 12:27 pm
Has thanked: 2 times
Been thanked: 0 time


Return to JCL