DSPF source from corresponding object

105 pts.
Tags:
DSPF
DSPF-Format
We required the format description dynamically. Can we retrieve the DSPF source from the corresponding object?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following