Creating Objects

Tags:
AS400 Command
is it possible to create a spool file without creating object? If possible suggess me the steps..
ASKED: December 17, 2013  11:24 AM
UPDATED: December 18, 2013  4:05 PM

Answer Wiki

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

Discuss This Question: 8  Replies

 
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

    Yes. Just press the PrintScreen function key after logging on. A spooled file will be created without creating any objects.

    Of course, that might not make sense because it's pretty specific to a particular kind of logon to a particular OS through a particular kind of interface. But you didn't limit your question to any OS nor any device nor anything else. If those aren't important, then the answer might be anything.

    Tom

    125,585 pointsBadges:
    report
  • TomLiotta
    Ah, the AS/400 tag showed up this time. So I guessed right. -- Tom
    125,585 pointsBadges:
    report
  • CharlieBrowne
    Actually to create a spool file you need an output queue. An output queue is an object.
    39,815 pointsBadges:
    report
  • TomLiotta
    The question is a little ambiguous if it's necessary to create an *OUTQ. I've yet to see a system that did not have default *OUTQs as soon as the initial install was done. So if the requirements include thinking of an *OUTQ object, then there might be thousands of objects needed. E.g., the PrintScreen key has OS programming behind it, so those program objects must first be created. The workstation *DEVD has to be created. A *CTLD and a *LIND, etc., etc.,... Obviously the scope of the question is a problem. Where is the line drawn? -- Tom
    125,585 pointsBadges:
    report
  • thambiyannanvignesh
    I had a rpgle program named pgm1 and i create an object for it. Again am recompiling the pgm1 that time i don't wanna to create or replace the existing object but i want the spool file alone. Is it possible???
    50 pointsBadges:
    report
  • TomLiotta
    What spooled file? Did you have the program create a report? Or are you concerned about the listing from the compiler? Either way, running the program again won't affect an earlier spooled file at all unless you wrote the program to have it remove the spooled file. And if you did that, we can't stop it. It'd be up to you to keep the file somewhere out of reach of your code. -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb

    I think you want a compiled listing without creating the program object.

    What I usually do is to direct the compile to create the object in a junk library.

    If you're using PDM .. 14 or 15 to compile press f4 change library to myJunk (must be an existing library) 

     

     

    48,565 pointsBadges:
    report
  • TomLiotta
    Ah, yes, that seems reasonable. Then compile the source into the QTEMP library. That's probably the easiest to do. The compiler listing can be created, the original compiled object won't be disturbed and the new one will disappear when the compile job ends. -- 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