CL Questions and Answers

Recent IT Questions

121 - 140 of 199

Did anyone use DATA structures In CL

As of V5R4 it is possible to use Data structures in CL similar to RPG. The most useful thing to use is for qualified commands where the qualifie parameter is a File and Libraray. but itl looks to me that it does not work when the parameter is a data structure and the program is CLLE. in CL it...

View Answer   |  Sep 11 2008  7:38 AM GMT
CLLE, CL, Data structures
asked by 770

  60 pts.

CPYTOIMPF 'To File' problem

The following command: ===> CPYTOIMPF FROMFILE(LTCLIB/WPELG01P) TOFILE(LTCLIB/WPELGCSV) MBROPT(*REPLACE) STRDLM(*NONE) produces error To-file WPELGCSV in LTCLIB not allowed. The explanation says the To file must be an externally defined PF, which it is. I need to remove the double quote...

View Answer   |  Sep 10 2008  5:22 PM GMT
RPGLE, CPYTOIMPF, CL
asked by Lwk

  25 pts.

Virtual Tape CL Program

Does anyone have an example cl using virtual tape for backup. I have tested with this but am looking for a way to incorporate into a custom cl backup procedure.

View Answer   |  Sep 9 2008  2:38 PM GMT
Tape Backups, CL, AS/400 backup
asked by Bmangan

  260 pts.

ISeries ODBC Connection to Microsoft Word

Does any one know how to create an CL or a script to run Microsoft Word Merge feature with Iseries ODBC Connection

View Answer   |  Sep 8 2008  3:31 PM GMT
ODBC, CL, ODBC on i5
asked by Ladyofthesnows

  10 pts.

Nasty bug on new function of V5R4

as of V5R4 - DCL supports the STG (storage) keyword, which lets you designate how a variable's storage is to be allocated. STG(*DEFINED) tells the compiler that a variable overlays all or part of another variable. You'll also need to use the DEFVAR (defined on variable) keyword to tell which...

View Answer   |  Sep 7 2008  10:55 AM GMT
CLLE, CL, V5R4
asked by 770

  60 pts.

How to end a batch job in CLLE program?

I tried to end a batch job in CLLE by retreiving the job attributes through RTVJOBA and ENDJOB,but it doesn't work.Can anyone tell me what is the other procedure?

View Answer   |  Sep 3 2008  6:10 AM GMT
CLLE, CL, Batch job
asked by SamTheBest

  15 pts.

Retreiving current market price

We need to invoice our customers the cost of platinum used in some process, based on its usage in grams. I need to retreive the current market price of platinum from internet and use it in RPG program to do the calculations. How can we retreive the current market price of Platinum in a RPG/CL...

View Answer   |  Aug 28 2008  6:33 PM GMT
RPG, CL
asked by SHhand

  15 pts.

command to delete a line in physical file

i want to delete the comment lines through cl program.i want to know the command for deleting a line in physical source file?

View Answer   |  Aug 26 2008  9:55 AM GMT
CL, Physical File
asked by R22

  5 pts.

Determine TCP port used by a connection.

We have an application that has our iSeries(AS/400) connect to a remote IP address and port. If we have to end the application and restart it (IPL, error, end/start subsystem) the iSeries keeps the connection open. AFter the application is restarted, the TCP connections show two connections to the...

View Answer   |  Aug 25 2008  7:29 PM GMT
TCP, RPGLE, iSeries networking
asked by LHrabar

  95 pts.

create user based on (not navigator- I know how in navigator.

How do I create a user based on another user from a cl program.

View Answer   |  Aug 22 2008  6:37 PM GMT
User profiles, CL, CL programs
asked by TMc

  5 pts.

Password reset by menu item

My help desk resets passwords through the command line and I would like to write a CL and give them a menu option and take away their command line access. Suggestions? (I am not a 400 guy)

View Answer   |  Aug 21 2008  8:43 PM GMT
AS/400, CL, AS/400 user permissions
asked by Charlesrico

  10 pts.

PTF exit program

I am about to write a PTF exit program in CL. I have gone through the infocenter docuementation but some questions: 1. If I have 10 PTFs and that is already been loaded using LODPTF, how many times PTF exit programs will be called if I issue APYPTF? If it is 10 times then in which sequence? I...

View Answer   |  Aug 21 2008  5:32 AM GMT
PTFs, CL, Exit programs
asked by Raju400

  60 pts.

File Size of a PF in AS/400

How to determine the file size of a a PF in AS/400. Is there a specific CL command which tells us as to how many records a file can store? Or how much more records it can accomodate before its 100% full?

View Answer   |  Aug 13 2008  8:05 PM GMT
CL, PF/LF
asked by Vijesh Bhat

  70 pts.

auto transfer of as400 to pc

Hi There How do I create a CL pgm to automatically transfer physical file to a PC server in csv format. Thanks for the help

View Answer   |  Aug 12 2008  9:29 AM GMT
CL, AS/400 import/export, CSV format
asked by Nikolai1960

  30 pts.

Connection to relational database XXXX already exists.

I am trying to do a CPYFRMIMPF in a CL and am getting the following Error occurred in SQL Call Level Interface Error occurred in SQL Call Level Interface Error occurred in SQL Call Level Interface Connection to relational database XXXX already...

View Answer   |  Aug 8 2008  6:01 PM GMT
CL, CPYFRMIMPF
asked by Dcarney

  30 pts.

Error received on CPYFRMIMPF command - SQL0842

Does anyone know what command should be run prior to the CPYFRMIMPF command to close what needs closed. Running this in a CL program.

View Answer   |  Aug 7 2008  11:27 PM GMT
CL, CPYFRMIMPF, Error SQL0842
asked by Dcarney

  30 pts.

Reading IFS file from CL program

I have a requirement of reading a IFS file from CL program. As far as I know there is no direct way of achieving this. I am planning ot use CPYFRMSTMF followed by CPYF to copy the IFS file first as a memeber and then as a database file. Is there any better way to achieve this? Regards Sudip

View Answer   |  Aug 4 2008  1:42 PM GMT
IFS, CL, CPYF
asked by Raju400

  60 pts.

Read a message Queue without loosing messages

I have developed a CL pgm, which monitors a message queue and in case a job ended abnormally message appears on that message queue, the system sends a email message to certain users. This is working fine, however the user whose message queue i monitor does not receive any message as my program...

View Answer   |  Aug 4 2008  12:01 AM GMT
CL, CL/400
asked by JohnsonMumbai

  380 pts.

CL - OPNQRYF

How to compare CL character field (year#) with packed decimal field(QRPS)of 3P0 length from file QRBT as equal. Please provide OPNQRYF statement for the same.

View Answer   |  Aug 1 2008  7:58 AM GMT
OPNQRYF, CL
asked by Minuvinu

  35 pts.

cl/400

Hi, Good morning my experts.Im kuppi.im working as a software trainee on AS/400 technology.i have also joined with ibmi5 team.im trying to convert date with cl/400 coding.I have taken 2 parameters(like date and date types). A. If suppose date type is j,Now i want to convert date to *MDY format...

View Answer   |  Jul 31 2008  5:37 AM GMT
CL, CL/400, CVTDAT
asked by Ibmi5

  125 pts.

121 - 140 of 199