So you think you know how to code on an AS400 Huh?

  • Home
  • /
  • Blog
  • /
  • So you think you know how to code on an AS400 Huh?

January 8, 2009

How can u send Parameters through LDA to another program and how do you receive?

CHGDTAARA-CL

RCVDTARA-CL IN and OUT in RPG

In P.F you are having no records and you write SFL Program, so how can you know that there are no records in P.F? Which make you to show there are no records?

If the first Read returns End of file then there is no records in the PF

How can u send data’s of P.F to data Queue and how to receive the data Queue and how to copy it to your file?

Read PF

QSNDTAQ

Can we journel logical file and access path?

No

Can we use commitment control for non-join L.F?

No

What are the activation groups’ commands that are used?

RCLACTGRP

What is special about QTEMP library?

Specific to JOB

What is the purpose of QRPGOBJ library?

Library for Storing RPG Objects

Where is the SYS library list defined?

QSYS

How will you DCL a trigger in RPG?

Trigger is a Program that will execute automatically on File Operation

How to call trigger?

Trigger is a Program that will execute automatically on File Operation

How to lock a particular record and how to open the lock in RPG?

READ, CHAIN –To lock the record UPDATE and DELETE for Unlock

Difference between RPGLE and OPM?

OPM

ILE

Program

Program Service program

Compilation results in a runnable program

Compilation results in a nonrunnable module object

Compile, run

Compile, bind, run

Run units simulated for each language

Activation groups

Dynamic program call

Dynamic program call Static procedure call

Single-language focus

Mixed-language focus

Language-specific error handling

Common error handling Language-specific error handling

OPM debuggers

Source-level debugger

What are ARRAY mandatory key words?

DIM, if it is a compile time array then – CTDTA and PERRCD

If it is a pre run time array then we need to declare a file as Table “T”

How will you override particular file during runtime?

OVRDBF

What is the status where copy is pending?

JOBQ

What are the uses of FRCDTA?

Use this record-level keyword to display a record format immediately, without waiting for the next input or input/output operation. When the buffer is partially full, the FRCDTA keyword can be used to clear the buffer.

What are runtime API in RPG?

QCMDEXC, QRCVDTAQ, QSNDDTAQ, QCLRDTAQ.

How to define multidimensional array?

Declare a Multi occurrence data structure and declare the array within the data structure.

How to make display the 5th member as default in RPG program?

OVRDBF

Why cannot we update using Join-Logical file?

It a READ ONLY view

How to update a file without using file opcodes?

RPG Life Cycle

How to display a screen without using EXFMT?

WRITE READ

What is API’s in Data Queue?

QSNDDTAQ

QRCVDTAQ

QCLRDTAQ

NickLitten


IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Shameless Trekkie, Belligerent Nerd, Englishman Abroad and Passionate Eater of Cheese and Biscuits.

Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day.

Enjoy your stay, feel free to comment and remember: If at first you don't succeed then skydiving probably isn't a hobby you should look into.

Nick Litten

related posts:

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Subscribe NOW
7-day free trial

Take This Course with ALL ACCESS

Unlock your Learning Potential with instant access to every course and all new courses as they are released.
 [ For Serious Software Developers only ]

Online Learning for IBM i Software Technology Professionals

“The more that you read, the more things you will know. The more that you learn, the more places you’ll go.” – Dr. Seuss

>