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

using dslist to get size of the last GDG version


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
isnehil
Warnings : 1

New User


Joined: 10 Oct 2007
Posts: 23
Location: mumbai

PostPosted: Mon Jun 16, 2008 1:49 pm
Reply with quote

Hi all,

I am trying to find the space taken by the latest GDG version, if a gDG base is provided to the rexx program.

I guess it could be done through LMDLIST service. I have written the following code.

Could someone please enlighten me what changes I make in this code.
Which are the variables to look for in to find the space consumed in bytes by this file.
Code:

/* REXX */
/*
SAY PLEASE ENTER GDG BASE
PULL GDG */

GDG=PRODSC75.DSC75950
X=OUTTRAP(LST.) /* LISTCAT GDG BASE */
" LISTC ENT('"GDG"')"
X=OUTTRAP(OFF)
DO A = LST.0 TO 1 BY -1 /* FIRST FIND = 0 GDG */
IF POS('NONVSAM',LST.A) > 0 THEN DO
DSN = SUBSTR(LST.A,POS('NONVSAM',LST.A)+13,44)
A = 0
END
END
SAY "GDG=" GDG
SAY "DSN =" DSN
GDG1= SUBSTR(DSN,19,8)

ADDRESS ISPEXEC
DSNLEV = 'PWSX.KAMSHEW.G0269V00.SNDISK'
"LMDINIT LISTID("LSTID") LEVEL("DSNLEV")"

"LMDLIST LISTID("LSTID") OPTION(LIST) DATASET(DSVAR) STATS(YES)"

"LMDFREE LISTID("LSTID")"

Thanks in advance,

~ Snehil
Back to top
View user's profile Send private message
isnehil
Warnings : 1

New User


Joined: 10 Oct 2007
Posts: 23
Location: mumbai

PostPosted: Mon Jun 16, 2008 2:10 pm
Reply with quote

Hi,

I want to use the ZDLSIZE variable..how do i do that.... please suggest....

Thanks,

~ Snehil
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top