Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
As400 Faqs

As400 Faqs



|Views: 4,153|Likes:
Published by api-3837729
AS400 frequently asked questions
AS400 frequently asked questions

More info:

Published by: api-3837729 on Oct 18, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less





Frequently asked Questions in AS/400
1.Define a shared access path?
To share the open data path by various programs in a same job.
2.What is the difference between array and a multiple occurrence data structure?
The values stored in array don’t vary. In the other hand, we can store theDifferent values in same variables at various stages.
3.What is *INZSR used for?
It is special type of RPG/400 subroutine, which is executed automaticallyat beginning of the program. It is a good place to code initializes the variables.
4.How can you execute a command from within an RPG program without calling a CLPprogram?
By calling QCMDEXC application program interface we can execute a CL command with in anRPG program.
5.What is the purpose of the "N" in the following calculation specification?
If you specify 'N' in 53rd position, the record will not be locked if you try to read the lockedrecord. It is a way of avoiding the record lock.
6.Which of the following operations does NOT zero the field FLDA defined as 4,0?
The last instruction does NOT zero the field FLDA.
7.How can you check for a records existence without causing and I/O (CHAIN/READ)?
With the help of File Information Data Structure, we can check existence of records in a physicalfile. The code is described below:In File description continuation line (IPFK), 
with the above code we can check the existence of records in a file without causing I/Ooperation.
8.Define what a data area is along with a brief example of what it may be used for?
Data area is a storage area to store limited information.Frequently Asked Questions in AS/400Page 1
a new and unique customer number is generated whenever a new customer is addedto customer master file. Data area keeps track of last record added and add 1 to it. Throughprogram we can access new customer number.
9.Define what a data queue is along with a brief example of what it may be used for?
Data queues provides communication between programs by calling API's QSNDDTAQ andQRCVDTAQ along with parameters like data queue name, library in which data queue exists,variable to store the number of characters to be sent. We can send the same data queue to themany programs.
10.What is the purpose of the following?
It is a type of initializing the variables in I-spec. and these are further used in C-spec.
11.What is the difference between UDATE and the system date?
UDATE supports two-digit year. The format is *MDY (MMDDYY).*DATE (system date) supports four digit year. The format is *MDYY (MMDDYYYY).
12.List some of the commonly used commands for debugging
STRDBG(for batch jobs), STRISDB.
13.Define the RCVF command?
RCVF command used to receive the records either from the data base file or device file.
14.Define the purpose of the %SST function?
To extract the information from the specified string.
15.Define the purpose of the *CAT function?
To concatenate the two strings into a one string.
16.Define the purpose of the *BCAT function?
To concatenate the two strings by placing a single blank in a resultant.
17.Describe the difference between the DOWxx and DOUxx operations?
DOWxx : If the condition becomes true, then only the group of instructions allowed executing.DOUxx : Irrespective of condition, it will execute at least one time.
18.Define the purpose of the LEAVE operation?
If you specify LEAVE, the control transfers to the statement below the ENDDO.
19.Define the purpose of the ITER operation?
If you specify the ITER, the groups of statements are allowed to execute repeatedly.Frequently Asked Questions in AS/400Page 2
20.List the steps/commands necessary to accomplish the following:
a. Copy data from the file ORDHDR into file ORDHISTb. The file ORDHIST may or may not existc. If the file ORDHDR does exist, it may or may not contain datad. The file ORDHIST may or may not contain data, if the file doescontain data the old data should be erasedCommands:
21.What is the purpose of the following?
In order to rename the record format of a data base file in a program,we can use the above steps. Purpose of renaming is: If the record format name is similar intwo files and if both are used in a same program, the program will not compile. Hence we haveto rename either of the file.
22.What is the purpose of the following
During the compilation the source code of ORDERR copy book is copied into theexisting program. Where as /COPY is compiler directive statement.
23.What is the purpose of the following
The above line indicates that, $2SFN is a relative record number and FMT2 is name of thesubfile record format.
24.What is the purpose of the following
The purpose is to define the variables in I-Spec and these are further used in C-spec. Where as ‘U’ indicates data area data structure? The above code is used to update the data areavalue through the program. The letter "U" indicates that the defined data structure is a dataarea data structure.
25.What is the purpose of the following?
Frequently Asked Questions in AS/400Page 3

Activity (57)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
anuppdas liked this
anuppdas liked this
1988mahavir liked this
psunilkumarreddy liked this
Sumit Dey liked this
Senthil Nathan liked this
as400srinu liked this
Rahul Tyagi liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->