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

SMF IFAMGET macro GTPB_RETURNEDLENGTH field after RC=0806


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ironheinrich7

New User


Joined: 12 May 2016
Posts: 3
Location: Deutschland

PostPosted: Fri Jul 13, 2018 7:56 pm
Reply with quote

An HLASM module using the SMF IFAMGET macro works really well. An exception would be when the RC=08,RSN=0806 is returned, meaning smf record returned is larger than the buffer area supplied. Unfortunately i cannot test this situation in our Lab as none of our SMF Records (atleast so far) ever exceed the size of the buffer area supplied, namely 32768 bytes,which is (unluckily in this case) the minimum size of the buffer area for this service.

Obviously the easy way around this issue would be to increase the buffer size, to a predetermined maximum possible, and try avoid the issue altogether. However i was wondering if anyone has used this SMF service, and are familiar with whether the GTPB_RETURNEDLENGTH field of the GETPARMBLOCK will contain the actual length of the record which failed with the RSN=0806, so that a new buffer could be "dynamically" allocated to the correct size, retrieve the larger record, throw away large buffer and return to the 32768 buffer size for all other instances.

Any feedback would be appreciated.
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
Search our Forums:

Back to Top