CLP Questions and Answers

Recent IT Questions

101 - 120 of 185

How can I determine if the SMTP server is active from a CL program?

In a CL program, I want to start the SMTP server using the command STRTCPSVR *SMTP if it is not already started (such as being auto-started at IPL time). I then intend to end the server at the bottom of the CL, but only if the CL program actually started it. I tried issuing the STRTCPSVR...

View Answer   |  Sep 28 2006  5:14 PM GMT
CLP
asked by Skipper67

  0 pts.

As400 files - a basic question from a newbie

I know this is going to sound silly - a file has a format/formats. What is a 'member'?

View Answer   |  Sep 24 2006  3:16 AM GMT
AS/400, RPG, Printing
asked by raddy59

  0 pts.

CL test for user in group

I need to test for a specific user in a group to allow them access to a menu option in a CL program. I have already created the new group and added users to it. I need help with the actual CL command to test &user in &group. Tks

View Answer   |  Sep 22 2006  12:12 AM GMT
CLP
asked by Pudmgr

  0 pts.

TAB to skip field - SYNON

I have a synon screen pgm with 5 input fields - one below another. I am on first field, and on pressing TAB there, I want the cursor to go to third field skipping the second. How can I do that? Plz help.

View Answer   |  Sep 21 2006  10:52 AM GMT
AS/400, RPG, Application development
asked by Rituraj

  0 pts.

CL AS400 iSeries ILE Retrieve Source

Is there any way to retrieve source for an ILE CL program? I'm looking for a function equivalent to the RTVCLSRC command we use for retrieving the source for a CLP ?

View Answer   |  Sep 21 2006  9:31 AM GMT
AS/400, RPG, Application development
asked by RIRedCheryl

  0 pts.

Journal

How can i retrieve a record from a journal so that i can update the said record to another physical file. Because i want to retrieve the record created or updated from the journal so that i can update the other file. Thank you.

View Answer   |  Sep 18 2006  9:55 PM GMT
AS/400, RPG, Application development
asked by 10221979

  0 pts.

clear physical file member question

is it possible for me to only clear certain records of a physical while leaving certain records available? I have a file with thousands of records, but I only need the records starting with a certain date. How can I delete everything prior to the date that i need with out totally wiping out the...

View Answer   |  Sep 13 2006  9:25 AM GMT
AS/400, Security, RPG
asked by blackc

  0 pts.

CL Program to vary off Network Servers (*NWS)

Hello Can someone please help me with the following. We have an iSeries with an xSeries attached. The issue is that when we perform a scheduled IPL using the GO POWER menu, the xSeries is not being ended correctly prior to all other subsystems ending and then performing the IPL. What I am...

View Answer   |  Sep 11 2006  0:13 AM GMT
CLP
asked by malcolm41

  0 pts.

Use SysReq to get WRKJOB

I use to create a library - MYQSYS and load it with CRTDUPOBJ OBJ(WRKJOB) FROMLIB(QSYS) OBJTYPE(*CMD) TOLIB(MYQSYS) NEWOBJ(DSPJOB). I was then able to use the cmd CHGSYSLIBL LIB(MYQSYS)To put this library ahead of QSYS and when I used SYSREQ option 3 I got a WRKJOB instead of DSPJOB (and a cmd...

View Answer   |  Sep 1 2006  11:00 AM GMT
AS/400, Application development, CLP
asked by StanZG

  0 pts.

OS Version

How can I determine what OS Version is installed on my system from a program? The OS version is not in the system values, RTVJOBA, or RTVNETA.

View Answer   |  Aug 31 2006  1:06 PM GMT
AS/400, Application development, CLP
asked by KevinBattreall

  0 pts.

Limiting User Abilities

We have an administrator here that we are trying to limit access on and I wanted to know if anyone else has solved this issue. I spoke with IBM and we have restricted the access to ADDUSRPRF and DLTUSRPRF commands and we have also restricted access to certain user profiles like QSECOFR and QSYSOPR....

View Answer   |  Aug 29 2006  9:13 AM GMT
AS/400, Security, CLP
asked by rayne427

  10 pts.

CPF5152

Hello, I am experiencing a strange problem that is driving me crazy. First what I am attempting to accomplish is to read a DSPF file looking for specific output records and then write to a source file lines of RPG III code to output to those fields. What is happening is that after the 44th line...

View Answer   |  Aug 17 2006  10:34 AM GMT
RPG, Application development, CLP
asked by Joven1

  0 pts.

How can you send a Reverse Image message to users message que

I am attempting to send a Reverse Image message to a users message que with the SNDMSG command. I am attempting to put the 'X21' attribute (Green Reverse Image) on the message so that the message appears in Reverse Image and stands out for the user. I have seen this done before but...

View Answer   |  Aug 11 2006  9:58 AM GMT
AS/400, RPG, CLP
asked by seeker0719

  0 pts.

DB2 Stored Procedure V4R4 without ILE C/400

We have an older iSeries running V4R4. We user Rumba/400 for AS400 access, and we've run into a problem using the Rumba ODBC driver for linked server access from our SQL server to our AS400 (The ODBC driver periodically fails when the linked server is used heavily). Because of this, we've been...

View Answer   |  Aug 4 2006  11:00 AM GMT
AS/400, Oracle, SQL
asked by MODMOD

  0 pts.

Job Schedule Entries Migration

Hi All, We are migrating from an 820 to a new 550 i5 this weekend. Does anyone know how we can migrate the current Job Schedule Entries on the 820 to the 550? Is there an API to the database that holds the Job Schedule Entry details that we can use to extract the info and then push it into the...

View Answer   |  Jul 28 2006  9:18 AM GMT
AS/400, RPG, Application development
asked by RaydenR

  0 pts.

Is this possible

I am writing a cl that will run two seperate queries. the first builds a file. the second needs a parameter before it can be displayed. The parameter is a route range. We get the route from a production file. Is there away to do a read or a chain statement to a file that will allow me to get that...

View Answer   |  Jul 12 2006  11:36 AM GMT
AS/400, CLP
asked by cowboypgmr

  0 pts.

SQLCOD = -7008 when doing an insert into file using SQLRPGLE-2

Hi, I'm trying to insert selective records from one file into the same file in another library. I have to do this for many file. Am building the query dynamically using SQLRPGLE. Am using a PREPARE statement and an EXECUTE statement to run the query. While the PREPARE statement ends fine, am...

View Answer   |  Jul 4 2006  12:45 AM GMT
AS/400, RPG, Application development
asked by SasiKumar

  0 pts.

SQLCOD = -7008 when doing an insert into file using SQLRPGLE

Hi, I'm trying to insert selective records from one file into the same file in another library. I have to do this for many file. Am building the query dynamically using SQLRPGLE. Am using a PREPARE statement and an EXECUTE statement to run the query. While the PREPARE statement ends fine, am...

View Answer   |  Jul 4 2006  12:44 AM GMT
AS/400, RPG, Application development
asked by SasiKumar

  0 pts.

Displaying Chinese on 5250 screens

Hello, I need to change some CL driven green-screen menus to display Chinese instead of English. We don't need to change the applications or data behind the menus ... just the menus themselves which are actually driven by message files with a display file and some CLP. Does anyone know of a...

View Answer   |  Jun 30 2006  3:48 PM GMT
RPG, Printing, Application development
asked by oldgrayprogrammer

  0 pts.

Deleted Users

Hi Is there any way we can know about deleted userprofiles in AS400? We have an audit process wherein the auditor have asked for a list of all the users deleted. Can any one suggest where can I get such a list? pgsdeb

View Answer   |  Jun 28 2006  7:44 AM GMT
AS/400, Security, Application development
asked by pgsdeb

  5 pts.

101 - 120 of 185