Home > cpf9898 error > cpf9898 error in as400

Cpf9898 Error In As400

Contents

receiver of the messages is not currently using the system From one OPM program or ILE procedure to another OPM program sndpgmmsg or ILE procedure From a program or procedure to a system user,

Monmsg Cpf0000

even if the receiver of the messages is not currently using the system Interactive system users can send monmsg list of messages only immediate messages and replies. OPM programs or ILE procedures can send immediate messages or predefined messages with user-defined data. In addition, programs or procedures can: Receive messages Retrieve a qmhsndpm message description from a message file and place it into a program variable Remove messages from a message queue Monitor for messages Sending Messages to a System User Several commands can be used to send messages to system users: Send Message (SNDMSG) Send Break Message (SNDBRKMSG) Send Program Message (SNDPGMMSG) Send User Message (SNDUSRMSG) SNDPGMMSG and SNDUSRMSG can only be used in batch or interactive OPM programs or ILE procedures. These commands cannot be entered on a command line. The SNDMSG command sends an informational or inquiry message to the system operator message queue (QSYSOPR), a display station message queue, or a user message queue. You can send an informational message to more than one message queue at a time. But you can send an inquiry message to only one message queue at a time. The message is delivered by the delivery type specified for the message queue. The message does not interrupt the user unless the message queue is in break mode. The following SNDMSG command is sent by a display station user to the system operator: SNDMSG MSG('Mount tape on device TAP1') TOUSR(*SYSOPR) The SNDBRKMSG command sends an immediate message from a work station, a program, or a job to one or more display stations to be delivered in the break mode regardless of what delivery mode the receiver's message queue is set to. This command can be used to send a message only to display station message

listingCPDView message listingCPEView message http://www.iseriesworld.net/?messages=cl&prefix=cpf&code=9898 listingCPFView message listingCPGView message listingCPIView message listingCPPView message listingCPXView message listingKBDView message listingKEYView message listingMCHView message listingOPTView message listingQWMView message listing home © 2005-2016 www.iSeriesWorld.net terms & conditions | privacy policy e-mail : webmaster@iSeriesWorld.net

it or not, iSeries, i5, and System i administrators usually have to write small Control Language (CL) programs to help them manage their systems. To make this task easier, I frequently use several common http://www.itjungle.com/fhg/fhg112807-story03.html programming and IBM-sponsored techniques to perform different functions. This week, I'll look at three basic http://search400.techtarget.com/tip/Issue-interactive-status-messages-in-a-CL-program programming and administrative tools for CL programming and demonstrate how they can benefit you when creating operational programs. Tool #1: Sending Status Messages When a User is Running a Program When you're writing long-running code that has to be run interactively, it helps to flash status messages at the bottom of the screen to let the user cpf9898 error know what's happening and to reassure him that the program is indeed running. I frequently use the Send Program Message (SNDPGMMSG) command for this task. SNDPGMMSG displays a text message of your choosing on line 24 of the display session where the program is running. If I want to send a status message during an interactive program run, for example, I would execute the following SNDPGMMSG command at the appropriate place cpf9898 error in in my CL code. SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA('Message text') By running SNDPGMMSG, whatever text is listed in the Message Data parameter (MSGDTA) will be printed at the bottom of the screen. For this tip, it's important to code this command so that it always sends a program message with a Message Identifier (MSGID) parameter of CPF9898 from the QCPFMSG message file, as designated in the Message File (MSGF) parameter. CPF9898 is the escape message identifier that i5/OS uses to send messages to a display terminal instead of to a named message queue. The text of the message must always be entered in the Message Data (MSG) parameter. If you don't want to hard-code your message text but prefer instead to display the contents of a character-based CL variable in the program, you would instead code your SNDPGMMSG command like this. SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA(&MESSAGE) In this case, whatever value is present in the variable listed in the MSGDTA parameter will appear as a message on line 24 of your user's display session. In addition to using message ID CPF9898 to send a message, you can also code your SNDPGMMSG command to use message ID CPF9897, like this. SNDPGMMSG MSGID(CPF9897) MSGF(QCPFMSG) MSGDTA('Message text') This command will run exactly the same way as the CPF98

iSeries Applications iSeries compliance and regulation iSeries service and support issues iSeries system performance and monitoring Multi-platform Integration Server Consolidation Server Installation Server Pricing Systems Management Tools File Sharing View All Integrated File System (IFS) iSeries Access (Client Access) iSeries managed email and groupware NetServer Network File System (NFS) QNTC File System High Availability View All Business Continuity High Availability Tools Replication IBM iSeries division news View All iSeries application development View All iSeries Application development tools iSeries CL programming iSeries COBOL programming iSeries ILE programming iSeries Java programming iSeries programming commands RPG iSeries programming Visual basic on iSeries iSeries backup and recovery View All Data backup, storage and retrieval on iSeries iSeries disaster recovery and business continuity Remote Journaling Restores Storage iSeries database management View All DB2 UDB (universal databases) iSeries SQL commands and statements Oracle on iSeries iSeries document output View All Imaging on iSeries Printing on iSeries Printing-Imaging Tools iSeries hardware management View All Grid Computing Logical Partitions (LPAR) On-demand Computing iSeries networking View All Connecting to Printers FTP Physical connections to iSeries Remote Access to iSeries TCP-IP VoIP iSeries security planning View All iSeries physical security iSeries system and application security Security Tools iSeries systems management View All Change Management Debugging i5-OS -- OS-400 iSeries Applications iSeries compliance and regulation iSeries service and support issues iSeries system performance and monitoring Multi-platform Integration Performance Server Consolidation Server Installation Server Pricing Systems Management Tools iSeries training and education View All iSeries job market iSeries skills User Groups iSeries upgrades and modernization View All Web Topics Archive View All iSeries Resources Please select a category File Sharing High Availability IBM iSeries division news iSeries application development iSeries backup and recovery iSeries database management iSeries document output iSeries hardware management iSeries networking iSeries security planning iSeries systems management iSeries training and education iSeries upgrades and modernization Section Problem Solve News Get Started Evaluate Manage Problem Solve Sponsored Communities Issue interactive status messages in a CL program byJoe Hertvik Use

 

Related content

cpf9898 error

Cpf Error p to server to establish log id relatedl when trying to load reports into OnDemand for i Technote FAQ Question I'm trying to run ADDRPTOND and it fails No messages are being recorded in the system log However the instance job log show a CPF with message arsload Could not connect to server to establish log id What might be causing this Cause It might be that you have the Host Name Search Priority field in your TCP IP configuration set incorrectly Answer You might need to check your TCP IP Host name configuration and domain configuration as