105 pts.
 DSPF
We required the format description dynamically. Can we retrieve the DSPF source from the corresponding object.

Software/Hardware used:
ASKED: March 4, 2010  2:23 PM
UPDATED: March 16, 2010  11:19 PM

Answer Wiki:
HI, yes you can retrieve the source by reading the source physical file and the member through a CLP or a RPG program. YOu can retrieve all the lines there one by one. hope this will help. regards ============================================================= If source exists and the source info is stored in the object description:<pre> RTVOBJD OBJ(MYLIB/MYDSPF) OBJTYPE(*FILE) SRCF(&SRCF) SRCFLIB(&SRCFLIB) SRCMBR(&SRCMBR)</pre> That's one simple way to see what it's supposed to be. However, I'd be very wary of relying on the source info if I was needing to determine actual formatting. Instead, I'd call the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/qdfrtvfd.htm">Retrieve Display File Description (QDFRTVFD) API</a> to find out what the DSPF itself said. The source might have been modified and not yet compiled or any number of other things could have happened. Tom
Last Wiki Answer Submitted:  March 5, 2010  1:14 am  by  ten2008   1,150 pts.
All Answer Wiki Contributors:  ten2008   1,150 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

BTW, do you have a way of guaranteeing that it will always be a DDS DSPF? What if it’s a USRDFN user-defined format? What if the screen was built with DSM? What if it’s a UIM application? I use all three at times.

Tom

 108,260 pts.