Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SMF IFAMGET macro GTPB_RETURNEDLENGTH field after RC=0806

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
ironheinrich7

New User


Joined: 12 May 2016
Posts: 2
Location: Deutschland

PostPosted: Thu Aug 02, 2018 6:53 pm    Post subject: SMF IFAMGET macro GTPB_RETURNEDLENGTH field after RC=0806
Reply with quote

Reposting here as this may be section of the forum for the question:
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How do i verify the char field is hav... Raghu M N PL/I & Assembler 1 Tue Sep 22, 2020 9:26 pm
No new posts RPLDDDD field for extended VSAM - ESDS amitsjcntl JCL & VSAM 0 Tue Sep 22, 2020 1:45 pm
No new posts ISPF Edit Macro with profile commands... Lynne Schuler TSO/ISPF 14 Thu Jun 18, 2020 7:25 pm
No new posts TSO and the STAX Assembler Macro mxgdontmics PL/I & Assembler 43 Mon Jun 15, 2020 10:33 am
No new posts Need to open a DSN using REXX & e... Y Marwaha CLIST & REXX 10 Fri Jun 05, 2020 7:30 pm

Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us