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

Data exception error while reading DCOLLECT output


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
GOWTHAM

New User


Joined: 01 Apr 2009
Posts: 4
Location: usa

PostPosted: Tue Sep 22, 2009 2:36 am
Reply with quote

I posting this after doing lot of search on our forum...:-)
I'm trying to use the DCOLLECT output that I received from my SMS team & convert that in to a report format. Unfortunatly we do not SAS with us, so I'm trying to get my reporting done by using Eazytrive ,or, DFSORT.

My final report should have "Data-set-name", "Space-Allocated" & "Space-Utilized" for all migrated as well as Active data sets (i,e, records type DCURCTYP = D or M) that are present on the DCOLLECT output.

when I run my report program..I'm getting DATA exception errors. here is the declaration that I used
DCDDSNAM -> Data set name, starts at 25th position, Alpha numeric.
DCDALLSP -> Space allocated,start at 89th position, Packed decimal (i.e. COMP-3 in cobol equivalent)
DCDUSESP -> Space utilized, starts at 93rd position, Packed decimal (i.e. COMP-3 in cobol equivalent).

Is there any otherway that I can read DCOLLECT Output & extract the above 3 fields quickly? Any valid& useful reply is highly appreciated...
Thanks in advance !!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 22, 2009 2:44 am
Reply with quote

Hello and welcome to the forum,

Using HEX ON post some info from these data positions from the input you are using.

If your data is variable, remember to add 4 to the starting position. . .
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Sep 22, 2009 3:28 am
Reply with quote

GOWTHAM,

The DCOLLECT symbols and DCOLLECT examples at the following links might help:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000081#sym

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000081#ex
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 22, 2009 11:18 am
Reply with quote

When I use SAS I define those data fields as binary rather than PD. There is no sign included in the fields.
Back to top
View user's profile Send private message
GOWTHAM

New User


Joined: 01 Apr 2009
Posts: 4
Location: usa

PostPosted: Tue Sep 22, 2009 8:23 pm
Reply with quote

Thanks Frank... your Fields mapping document helped.. I was able to pull my report by converting the DCOLLECT output from VB to FB file in DFSORT...
OPTION COPY,VLSHRT
OUTFIL FNAMES=FBFILE,OUTREC=(1:5,1020),CONVERT

Then pulled the fields that I required by using....
for Active DASD files...
-------------------------
SORT FIELDS=COPY
INCLUDE COND=(5,1,CH,EQ,C'D')
OUTREC FIELDS=(1:25,44,47:89,4,FI,66:93,4,FI)

And for Migrated files...
---------------------------
SORT FIELDS=COPY
INCLUDE COND=(5,1,CH,EQ,C'M')
OUTREC FIELDS=(1:25,44,47:189,4,FI,66:193,4,FI)

Thanks !!!
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
Search our Forums:

Back to Top