CLP Questions and Answers

Recent IT Questions

161 - 180 of 185

triggers

i know you can attach a trigger to a physical file, but can you attach one to a print file or even a display file. thanks in advance

View Answer   |  Feb 3 2006  12:11 AM GMT
AS/400, RPG, Data analysis
asked by cowboypgmr

  0 pts.

Synon/Cool:2E - internal/external func performance question

I have a situation where I have to call a synon function multiple times (for each record in a file one after another) from another synon function. The called function does some calculatons. Will there be any performance improvement if I make the called func an internal function and have an external...

View Answer   |  Feb 2 2006  5:52 PM GMT
AS/400, RPG, Application development
asked by Rituraj

  0 pts.

ftp error codes

Hi! I'm writing a program that needs to execute the FTP command n times (where n is determined by the value of some field in a DDS table), only if there is an error during one of those executions. The question is: how can I determine if the execution failed? Thanks a lot! :) Meli

View Answer   |  Jan 31 2006  2:25 PM GMT
CLP, RPGLE, RPG ILE
asked by MelissaG

  20 pts.

CPYTOPCD

I can successfully copy data from a PF to a PC doc (via CPYTOPCD) and I can successfully e-mail the resultant PC DOC from the AS400 (via SNDDST) However, when I try to e-mail a large PC Doc (2 meg) I receive about 20 e-mails with *.DTF attachments, which are virtually unreadable. Any ideas?

View Answer   |  Jan 31 2006  10:36 AM GMT
AS/400, PC/Windows Connectivity, RPG
asked by riccardi

  0 pts.

Printing AS/400 ouptputs in diffrent printers,results in different outcome.

Our server is model 810 running on V5R2. We have a cheque printing program which outputs a spool which is used to print cheques.When the spool file is sent to a LEXMARK 2380/81 2390/91 series printers for print, the data is positioned perfectly in to the cheques. But we have some users who wants to...

View Answer   |  Jan 25 2006  4:08 AM GMT
AS/400, Printing, CLP
asked by ISU

  0 pts.

OVRDBF in JAVA

I am trying to insert records to a member in a PF through JDBC. Tried with QCMDEXC in Java. But the member is not being overridden, inserting records in the First Member-always. What may bethe cause? Can any one suggest the possible solution for this?

View Answer   |  Jan 24 2006  6:25 AM GMT
AS/400, Security, RPG
asked by cganeshh

  0 pts.

OVRDBF in Java

I am trying to insert records to a member in a PF through JDBC. Tried with QCMDEXC in Java. But the member is not being overridden, inserting records in the First Member-always. What may bethe cause? Can any one suggest the possible solution for this?

View Answer   |  Jan 22 2006  11:47 PM GMT
AS/400, Java, Application development
asked by cganeshh

  0 pts.

To retrieve data from a remote system

Hi, I have to retrieve data from a remote system (May be of any operating system) and shall put into AS/400. This process should be automated and there can't be any manual intervention. We can not use FTP commands here. Is there any other way this can be achieved. Can?t go for MQ Series...

View Answer   |  Jan 10 2006  11:11 AM GMT
Wireless, AS/400, Security
asked by Helbert

  0 pts.

Additional options for spool files

I would like to add an option to the Work with Job Spooled Files and Work with All Spooled Files screens that will perform exactly like option 2, except that the default for the DUPLEX parameter is (*YES). TIA for all replies.

View Answer   |  Jan 5 2006  11:54 AM GMT
Printing, CLP, DataCenter
asked by HowieK

  0 pts.

how to get the location of the User Options (updated usinf PF18 from PDM)

How can I access the Defaults information from Rexx / CL ? PF18 from PDM. I am looking for the values of Option file/lib/member. thanks Change Defaults ...

View Answer   |  Dec 25 2005  4:59 AM GMT
RPG, Application development, CLP
asked by GonenSho

  0 pts.

ANNOUNCEMENT ? MORE NEW CATEGORIES ADDED TO THE ISERIES CATEGORY

UPDATE YOUR AREAS OF EXPERIENCE The following categories have been added to the AS400 ? iSeries section. Application development Systems management PC/Windows connectivity groupware & e-mail Career Opportunities for iSeries These categories were added last week: Backup & recovery Security...

View Answer   |  Dec 22 2005  6:47 AM GMT
AS/400, Security, RPG
asked by DebraTart

  0 pts.

Source for a the DSPPGMMSG command

Dan wrote in with this question recently: "I'm trying to find the source for a command called: DSPPGMMSG. I have version 3.2 RPG & CL. I'm trying to run on a 5.2 box and this command is used extensively throughout the CL's. Any info would be greatly appreciated." Can you help Dan out? -- Debra...

View Answer   |  Dec 21 2005  4:16 PM GMT
RPG, CLP
asked by DebraTart

  0 pts.

Time Stamp Issues

Two questions about time stamp: 1. Is there a way to copy members/files etc so that the new member/file will still have the original time stamp (change date etc.) 2. Is there a way to update the member/file change date/time to a specific date/time (without actually saving it) ? thanks !!

View Answer   |  Dec 20 2005  3:53 AM GMT
AS/400, CLP
asked by GonenSho

  0 pts.

verify data file

Hi everyone! I've a CL program that copies a spool file into a PF file. Is there any way to compare both files, in order to assure they have the same information? Thanx in advance :) Meli

View Answer   |  Dec 19 2005  7:24 PM GMT
CLP, RPGLE, RPG ILE
asked by MelissaG

  20 pts.

SNDDST with .csv or .xls attachment

Can someone tell me how to send an attachment with a .csv or .xls? When I try, it sends it as .txt and when you open it up, it's all garbage! Also, how can I add headings to an .xls or .csv when using cpytoimpf. All I'm getting now is just data. Thanks!

View Answer   |  Dec 15 2005  1:06 PM GMT
CLP
asked by carolh

  0 pts.

Anyone ever use the SNDRPY command in CL?

I am using the CHGPF command to change a file. I know it will result in data loss, and I will get a messaage that I must reply "I" to ignore and then it will change the file. The file is used all day long and I would like to have a CL program change it after hours. I found the SNDRPY command...

View Answer   |  Dec 12 2005  4:56 PM GMT
AS/400, RPG, CLP
asked by dalejanus

  0 pts.

Special characters

I've got a situation where the users are entering characters into fields on the screen that I do not want them to enter. In COBOL, I can check these fields for alphabetic and numeric but I am under the impresion that this would not allow certain special characters that I do want to allow. Is...

View Answer   |  Dec 5 2005  4:35 PM GMT
COBOL, CLP
asked by AJordan

  0 pts.

SET verb in COBOL

Hi The SET verb in COBOL set the value of a particular variable to a specified value. Now say I decalred a variable as 05 WS-SWITCH PIC X(01). 88 VALID-VALUES VALUE 'A', 'B', 'C'. 88 NOT-VALID-VALUES VALUE 'D', 'E', 'F'. If I want to set the value...

View Answer   |  Dec 1 2005  3:36 AM GMT
AS/400, RPG, CLP
asked by pgsdeb

  5 pts.

write in a PF file

Hi everyone! I have an RPGLE program that creates four physical files (using the QCMDEXC program). These physical files have no DDS. In the same program, I read another physical file (that's a copy of a spool file). If the line (s) read met some specified criteria, it needs to be written to one of...

View Answer   |  Nov 25 2005  10:03 AM GMT
RPG, CLP, RPGLE
asked by MelissaG

  20 pts.

How to operating with Multiple Member PF in RPG ?

I have a multiple member physical file and I want to operate(read/update/delete) with specific member in RPG. The member name for that PF need to be set at runtime depending upon from which program this rpg program is called. I am writing the sample code that I was trying, but it ends up with...

View Answer   |  Nov 18 2005  0:06 AM GMT
AS/400, RPG, CLP
asked by inlog1

  0 pts.

161 - 180 of 185