Identify the name of the Journal Receiver

Identify the name of the Journal Receiver

I was wondering whether there is any way of identifying (in a CL program) the name of the current (attached) Journal Receiver. I know I can do that with WRKJRNA but I cannot use this command in a CL program. The idea is to detach and save the current journal receiver whenever my backup CL runs. We are running on V5R1.

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.

    By submitting your registration information to Search400.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of Search400.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

For this answer, I would like to direct you to the vast information found in IBM's Information Center. When first placed online, the Information Center was (to put it politely) difficult to use. But kudos to IBM -- it is now quite usable and quite functional. Go to the Information Center, choose your global location, then choose the OS/400 version you are interested in. In the left-hand navigational pane, open up the Programming topic. Then open up the CL and APIs topic. Choose "APIs by category". The main panel now displays all of the categories of APIs. Choose the Journal and Commit category. Now scroll down to the Retrieve Journal Information API. This API will allow you to programmatically retrieve the currently attached journal receiver.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: Tips, tutorials and more.

Search400.com's targeted search engine: Get relevant information on security.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Read this Search400.com Featured Topic: Secure your iSeries


This was first published in October 2002