CL/400 Questions and Answers

Recent IT Questions

21 - 40 of 63

CL/400 CRTLF

while creating an object for a logical file we will use in CL/400 CRTLF FILE(library/logical-file-member) SRCFILE(SARKNS/FIVE) But I need to give the logical-file-member name as a field like this pgm Dcl var(&var1) type(*char) len(10) chgvar var(&var1)...

View Answer   |  Mar 26 2009  7:43 AM GMT
CL/400, CRTLF, Create Logical File
asked by Khadar

  90 pts.

Keyed Data Queue

Hello, Can any one help me by providing a sample CL program to add and retrieve data from a keyed Data Queue? Please see the below mentioned CL program I am getting “CPF3C36” error. Can any one help me in this regards? PGM ...

View Answer   |  Mar 25 2009  10:35 AM GMT
AS/400 Data Queue, Keyed Data Queues, CL/400
asked by BibinGeorge

  110 pts.

OPNQRYF

DCLF FILE(LIBRARY/DISPLAY) START: SNDRCVF RCDFMT(REC) WAIT(*YES) IF COND(&IN03 *EQ '1') THEN(DO) GOTO CMDLBL(END) ENDDO IF COND(&ENQQUA1 *EQ ' ') THEN(DO) GOTO CMDLBL(START) ENDDO IF COND(&ENQQUA1 *NE *BLANKS) THEN(DO) OPNQRYF FILE((SARKNS/ENQP002)) OPTION(*ALL) + QRYSLT('&ENQQUA *EQ ''' *CAT...

View Answer   |  Mar 19 2009  6:37 AM GMT
CL, OPNQRYF, Open Query File
asked by Khadar

  90 pts.

OPNQRYF

PGM DCLF FILE(LIBRARY/DISPLAY) START: SNDRCVF RCDFMT(REC) WAIT(*YES) IF...

View Answer   |  Mar 18 2009  2:14 PM GMT
CL/400, OPNQRYF, CL/OPNQRYF
asked by Khadar

  90 pts.

Read backword in CL/400

How to read backword a physical file in CL400.

View Answer   |  Mar 16 2009  6:45 AM GMT
CL/400, Physical File, CL
asked by Bdchow

  5 pts.

CPYSPLF from one profile to another

Is there a command thru which we can copy the spool file from one profile to other?

View Answer   |  Mar 6 2009  5:18 AM GMT
CL/400, CPYSPLF, CL Commands
asked by PRIYAS

  40 pts.

CL/400 program for copying files

regarding as/400. I need to create a CL program for copying all files from HWMSFMODS(library) to HEXPFMODS(library). we are suppose to clear all data in from files. Please advice...

View Answer   |  Mar 5 2009  6:19 AM GMT
CL/400, CL, AS/400 administration
asked by Askt

  265 pts.

Inside a running CL program can you find the lib that the program is running from?

Can you find in a running CL program the lib that it was started from? For example in a C program you can get the library name from argv[0].

View Answer   |  Feb 17 2009  2:46 PM GMT
CL/400, AS/400, CL programming
asked by Mrlchile

  50 pts.

Unable to over ride a PF member

Hi, I made a cl program and in it I over ride a pf member, clrpfm then call my rpgle program. I can't write on my member but instead it writes on the primary member and reads it. seems the member that is used is the the primary member and not the member that I over rides.

View Answer   |  Feb 6 2009  3:43 AM GMT
Physical File, CL/400, CLRPFM
asked by Ayterrobias

  5 pts.

CL/400 command for Exit Point or Exit Programs

please advice any CL command is there for finding the information regarding exit points and exit programs.

View Answer   |  Feb 4 2009  11:24 AM GMT
CL/400, exit point, Exit programs
asked by Askt1

  105 pts.

OPNQRYF

I have 4-fileds on Display File like frdiv(zoned),todiv(zoned),frpr(char),topr(char) all the fields are of size 2 only. I am using a "OPNQRYF" to filter the records froma Physical file (pfdiv), it containes 1,25,000 records . Through this openqryf all the selected records I will copy to a file...

View Answer   |  Feb 1 2009  2:21 PM GMT
CL/400, OPNQRYF, Open Query File
asked by Khadar

  90 pts.

CL/400 - How to convert Spool file to Notepad

Hello Friends, I have a question. In my current project, I have to covert a spool file to notepad and this notepad I have to send it as an attachment to one email address. Question 1: How can I convert spool file to notepad? Question 2: How can I send a notepad as attachment to one email...

View Answer   |  Jan 27 2009  8:54 AM GMT
CL/400, Spool files, AS/400 import/export
asked by BibinGeorge

  110 pts.

How to check if email option is enabled on a AS/400 server

How to check if email option is enabled on a AS400 server

View Answer   |  Jan 23 2009  10:15 AM GMT
CL/400, AS/400 email, AS/400 administration
asked by Askt1

  105 pts.

Send a break message to multiple users

How to send a break message to multiple users.SNBRKMSG has the option to send it only to worksations.

View Answer   |  Jan 23 2009  10:03 AM GMT
CL/400, SNBRKMSG, Send Break Message
asked by Askt1

  105 pts.

ALCOBJ scope

I want to allocate the dataarea by using ALCOBJ command and i am confused the in selecting the scope. Can anyone explain me abt the difference betwwen JOB scope and THREAD scope in details ?

View Answer   |  Jan 23 2009  7:09 AM GMT
CL/400, ALCOBJ, Allocate Object
asked by Frmdeva

  215 pts.

Problem with delimiter in CPYTOIMPF

I have used pipe symbol | as the delimiter to seperate fields.I used this in a DS and moved it to a flat file.From the flat file CPYTOIMPF was used to created a text file and ftpd.The problem is that the | symbol is read as ! in another system.Wat could be the reason

View Answer   |  Jan 13 2009  10:32 AM GMT
CL/400, CPYTOIMPF, Pipe-Delimited Text File
asked by Anderson123

  840 pts.

CL400/OPNQRY

I HAVE A CASE LIKE THIS IN CL/400OPNQRYF FILE((MADE07/GLM0120)) QRYSLT('(GLFINP *NE 99) *AND (GLPRDC *EQ "AR" *OR GLPRDC *EQ"SW" *OR GLPRDC *EQ "WP" *OR GLPRDC *EQ "LR" *OR GLPRDC *EQ "MD") *and (glbrnc *eq "%substr(&bc 1 1)")') HERE BC IS A FIELD IN DISPLAY FILE I NEED TO filter data according to...

View Answer   |  Dec 31 2008  12:07 AM GMT
OPNQRY, CL/400, OPNQRYF
asked by Zilan

  85 pts.

OPNQRYF

I HAVE A CASE LIKE THIS IN CL/400 OPNQRYF FILE((MADE07/GLM0120)) QRYSLT('(GLFINP *NE 99) *AND (GLPRDC *EQ "AR" *OR GLPRDC *EQ "SW" *OR GLPRDC *EQ "WP" *OR GLPRDC *EQ "LR" *OR GLPRDC *EQ "MD") *and (glbrnc *eq "%substr(&bc 1 1)")') HERE BC IS A FIELD IN DISPLAY FILE I...

View Answer   |  Dec 31 2008  11:54 AM GMT
CL/400, OPNQRYF
asked by Zilan

  85 pts.

Search for text within a string in CL/400

Wath function can I use to find a text into other? I mean how caon I find the Position for -B- in the text -AABAA-

View Answer   |  Dec 11 2008  0:28 AM GMT
CL, CL/400, AS/400 development
asked by Estebanguevara

  5 pts.

CL - Copy To Import File

I am using the CPYTOIMPF fromfile(PF) to STMF('dir\acp&txtfile') where &txtfile is &curdt *tcat &curtm.(system date and time) The stream file is created as acp&txtfile and what i want is acp120108100150.

View Answer   |  Dec 1 2008  10:13 AM GMT
CPYTOIMPF, CL, CL/400
asked by Anderson123

  840 pts.

21 - 40 of 63