• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Avoid Locked Display Files/Resetting Page Numbers

    June 14, 2006 Dear Esteemed Professional Colleagues

    The following question (minus my editing for grammar) was recently posted on the IT Jungle Forums.

    I have a display file that remains locked almost all day by users. If I want to recreate the file, I have to wait until all users log out, releasing the lock. Is it possible for me to recreate the display files while it is locked?

    –Kaizad Patel

    Those of us who still write and/or maintain green-screen applications (and there are a lot of us) understand Kaizad’s problem. Here’s my reply to him.

    You can’t recreate the display file if someone has it open. You might be interested in a technique I’ve seen in MAPICS. When the user selects the menu option to run the program, the CL program runs CRTDUPOBJ against the display file, putting the copy in QTEMP. The RPG program opens the display file in QTEMP, not the one in the production library. Thus, there is never a lock on the display file.

    Here’s another question from the forums.

    How can I re-initialize the PAGNBR figurative constant used in RLU?

    And here’s the answer, courtesy of RussK.

    Use a controlling indicator with the PAGNBR keyword in the external print file. Whenever the record is written with the indicator on, the page counter will be set back to 1. Write the record format with the indicator off, and the page counter will increment normally. The important trick is to place the PAGNBR keyword on a source line separate from the starting position so that the indicator will only control the keyword. Placing them on the same line would cause the indicator to control whether the page number printed at all.

    A             120'PAGE:'
    A             +1
    A 80                PAGNBR
    A                EDTCDE(Z)
    

    There is a lot of good information in the IT Jungle Forums, and there are a lot of questions remaining to be answered. Visit soon, help yourself to the insight the forums offer, and help out if you can.

    –Ted

    RELATED RESOURCE

    IT Jungle Forums

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    Focal Point Solutions Group

    CLOUD SOLUTIONS

    From Production, Test and Development, Disaster and Backup environments, as well as hosting customer-owned servers, we offer a variety of Cloud Solutions to accommodate all sizes of business and industry. FPSG is in a unique position to provide services for multinational corporations and SMBs with data centers located throughout North America and Europe.

    Does your IBM midrange, AIX, iSeries, Intel, or Linux environment need an improved Cloud strategy?

    EXPLORE OUR CUSTOM SOLUTIONS

    • Production Solutions
    • Disaster Recovery
    • Backup and Recovery Services
    • Data Centers
    • Security & Compliance Services
    • Application Hosting

    MANAGED SERVICES

    Focal Point offers a variety of custom-managed services from daily operations management and monitoring to high availability, backup, and disaster recovery support services. If your enterprise requirements reside in IBM midrange, AIX, iSeries, Intel, or Linux, FPSG can help support your team with our managed services experts. No User downtime for production backups.

    • System Monitoring
    • Server & SAN
    • High Availability/Disaster Recovery Monitoring
    • Managed Backup Services
    • Security Administration & Monitoring
    • Cloud Environment Monitoring

    Our experts combine decades of experience with industry-leading innovation to customize effective solutions for your organization, budget, and infrastructure.

    It’s not uncommon for organizations to miss important requirements when implementing and planning for new technologies. Our Managed Technical Services ensure total compliance, with no compromise or loss of data. Our skilled specialists will design and execute a non-disruptive and comprehensive solution, allowing your IT team to concentrate on the day-to-day activities – resulting in a more agile and cost-effective infrastructure.

    Watch our IntellaFLASH™ Video to learn more

    Let’s Discuss Your Custom Solution Needs

    Follow us on LinkedIn

    focalpointsg.com | 813.513.7402

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    COMMON:  Join us at the Fall 2006 conference, September 17-21, in Miami Beach, Florida
    New Generation Software:  Leading provider of iSeries BI and financial management software
    Canvas Systems:  We build and deliver custom iSeries rental solutions

    IBM Offers Contingency Planning Assessment Service for Pandemics Happy 18th Birthday, AS/400; Time to Leave the Nest

    Leave a Reply Cancel reply

Volume 6, Number 23 -- June 14, 2006
THIS ISSUE SPONSORED BY:

T.L. Ashford
iTera
COMMON

Table of Contents

  • New in V5R4: OLAP Ranking Specifications
  • Avoid Locked Display Files/Resetting Page Numbers
  • Admin Alert: How to Set i5 Library Lists for 5250 and Batch Jobs

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • DRV Brings More Automation to IBM i Message Monitoring
  • Managed Cloud Saves Money By Cutting System And People Overprovisioning
  • Multiple Security Vulnerabilities Patched on IBM i
  • Four Hundred Monitor, June 22
  • IBM i PTF Guide, Volume 24, Number 25
  • Plotting A Middle Age Career Change To IBM i
  • What Is Code Transformation Even?
  • Guru: The CALL I’ve Been Waiting For
  • A Frank Solstice
  • The Inevitable Wave Of Power9 Withdrawals Begins

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2022 IT Jungle

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.