CLP Questions and Answers

Recent IT Questions

121 - 140 of 185

folders and documents

Is there a way for a program to find out if a folder contains any documents (we will not know a document name). We need to know if the folder is empty or if it contains any documents.

View Answer   |  Jun 27 2006  4:30 PM GMT
AS/400, Application development, CLP
asked by qbjgqbjg

  30 pts.

Writing in a specific output queue in C/400

Dear all, I need one more time your help... Well, I'm starting to learn C/400 programmation and I would like in my program to log all my traces in a specific output queue (not in the standard QPRINT output queue). I found a solution by changing the default output queue and using the simple...

View Answer   |  Jun 20 2006  6:19 AM GMT
AS/400, Printing, Application development
asked by PierreLG

  45 pts.

Run Remote Job

Greetings from New Jersey, USA. I hope you can help me find a way to run a job on a UNIX server from the AS/400. The situation is that Job A runs on the AS/400 and after it completes, a Job B has to run on the UNIX machine. At present we have an employee on the late shift who monitors Job A on the...

View Answer   |  Jun 14 2006  12:03 AM GMT
AS/400, Security, PC/Windows Connectivity
asked by ashnirody

  100 pts.

Calling CL program fron a C/400 program?

Dear, I'm very new in C/400 developement and I'm facing an issue. I've some CL program that I would like to call in my C/400 program... Well, ok, I can use the function "error=system(...)"... but my CL program as to return me some information. Here is my CL prgram: PGM PARM(&queue &queue_lib...

View Answer   |  Jun 9 2006  6:30 AM GMT
AS/400, Application development, CLP
asked by PierreLG

  45 pts.

QUERIES

I will be upgrading our software soon. All library names will be changing and we have tons of queries. Is there a way to automatically change the library names in my queries without having to go into each individual query separately?

View Answer   |  Jun 2 2006  2:16 PM GMT
AS/400, RPG, CLP
asked by GHENDER

  50 pts.

Year in Date or Timestamp value is not in the correct range (C G D F).

Hi All, I am getting the above error when trying to write the control format of a subfile. The DDS is coded as follows: A O_ESD L O 9 70DATFMT(*MDY) A MAPVAL(('01/01/40' *BLANK)) Not too sure what the MAPVAL will do as I dont think it can ever...

View Answer   |  May 26 2006  3:20 PM GMT
AS/400, RPG, Application development
asked by RaydenR

  0 pts.

Detecting FTP errors

Hi! I have a program that reads an FTP log and sends the user a message if there's an error (4xx or 5xx). But there are some errors that do not indicate which is the error code (like connection errors). How can I capture these errors? Thanx in advance. Meli :)

View Answer   |  May 16 2006  10:47 AM GMT
CLP, RPGLE
asked by MelissaG

  20 pts.

Performance issue

Hi I am using an OPNQRYF in a program which is used quite frequently. Now, the program takes about 20 secs when called once. I tried to create some logicals which can expedite the access to files but there has not been any appreciable change in the performance. Can anyone suggest any other method...

View Answer   |  May 15 2006  10:47 AM GMT
AS/400, Security, PC/Windows Connectivity
asked by pgsdeb

  5 pts.

compile commands in RPG

hey all! i am working on a project where i have to use compile commands for various member types, such as CRTRPGPGM for RPG, CRTPF for PF and so on.. but these commands have to run in the background, and the user should know nothing of it, i.e. it should be program oriented. how can i achieve...

View Answer   |  May 15 2006  2:40 AM GMT
AS/400, Security, PC/Windows Connectivity
asked by sairolla

  0 pts.

WRKNAMSMTP updating from CL

I am sure that this question has been asked many times before but have never seen any answers. Since there is no UPDNAMSMTP command how can I update the System alias table programatically from CL or RPG ?

View Answer   |  May 12 2006  6:01 AM GMT
RPG, CLP, RPGLE
asked by Barrell

  0 pts.

command execution

thanks a lot!! for the help... but meanwhile i have got another problem...in my project- i have to use COMPILE commands such as CRTPF, CRTCLPPGM, CRTRPGPGM and so on...in a program and this has to be transparent to the user. in CL these programs cannot be used... how can i do this? plz help me...

View Answer   |  May 12 2006  4:04 AM GMT
AS/400, RPG, Application development
asked by sairolla

  0 pts.

Program Status Data Structure

Hi All, For position 191 - 198 in the SDS, is this always the Date the Job Entered the system? For example, we have a CL that starts at 23:50 on say 5/10, it does some processing and on the way out it calls an RPG at say 0:35 on 5/11. Will the date in positions 191-198 reflect 5/10 or 5/11...

View Answer   |  May 11 2006  1:54 PM GMT
AS/400, RPG, Application development
asked by RaydenR

  0 pts.

souce file listing

hi all! i wanna know how can i retrieve the names of the components of a Source Physical File i.e. the names of the souce code (members) within a particular Source Physical File...i want ot retrieve the names and store in a database file and later use them for subfile operations. kindly help me...

View Answer   |  May 11 2006  8:15 AM GMT
AS/400, RPG, Application development
asked by sairolla

  0 pts.

AS400 Console

What effects are caused if you vary off your console session on the AS400 and you do not have any other consoles to take over? I want to move my console to another location in my DataCenter, but I have to disconnect it from the AS400 and reconnect it. Will varying the device off to disconnect it...

View Answer   |  May 3 2006  10:55 AM GMT
AS/400, Security, PC/Windows Connectivity
asked by bkr0963c

  0 pts.

route mail with fax service in sbs 2003

i have a sbs 2003 on my network and i configure him to get all the fax of my company, the only problem is that when i configure him to route all the incoming fax to some mail it does not seem to work, i check the event log and i get error 32083 and with this massage: Unable to route fax...

View Answer   |  Apr 26 2006  3:30 PM GMT
Disaster Recovery, Networking, Ethernet
asked by drorbenyosef

  5 pts.

Monitoring Tape Drives

Hello everybody, Well, I'm trying to write in C or CL a program that will monitor the different Tape Drives to know when and by who the drives are vary on and vary off. Does anyone as an example or can give me some infos to start because I'm really lost... Thanks in advance, Pierre.

View Answer   |  Apr 21 2006  6:13 AM GMT
AS/400, Application development, CLP
asked by PierreLG

  45 pts.

HOUSE KEEPING STREAM FILES

I would like to write a utility which housekeeps stream files in the ifs based upon how many days ago the file was CREATED. Does any body know an API for this (an API which is easy enough to work with 'RPG' and/or 'CL' and NOT 'C') The DSPLNK CL command doesn't provide the creation date it would...

View Answer   |  Apr 20 2006  9:13 PM GMT
AS/400, RPG, CLP
asked by chrisk

  0 pts.

ADOPT Authority

Hi I have a CL program in which there is command on which I do not have authority to execute. So I am not able to compile the program. Is there any way some one else, who has the authoruty on that command compile it and then I can execute the program? I have heard about something about ADOPT...

View Answer   |  Apr 10 2006  6:22 AM GMT
AS/400, Application development, CLP
asked by pgsdeb

  5 pts.

How do I send a spool file as an attachement using the SNDDST command?

Does anyone know how i can send a spool file as an attachment using the SNDDST command?

View Answer   |  Apr 4 2006  4:35 PM GMT
AS/400, RPG, Application development
asked by slaliberte

  5 pts.

Converting spyview optical reports to pc .pdf

I am trying to convert my as400 reports that are currently stored on optical using the product spyview (Gauss Company) to a .pdf report on my pc/server. I currently do not have support with Gauss any more so I can not call them. I need to restore all of my history from the last 6 years and put it...

asked by Karen0502

  0 pts.

121 - 140 of 185