Introduction SYNON AS400
Introduction SYNON AS400
DFLT functions
CRTOBJ
DLTOBJ
CHGOBJ
CRTOBJ
DLTOBJ
CHGOBJ
SELRCD
EDTFIL
STR
OWNED BY
REFERS TO
MAP
RST
POS
1.What is the maximum length of parameter could be passed to a functions .
2.I am creating a new function and only want CRTOBJ to be created what to do?
EXCEXTFUN
EXCEXTFUN
EXCINTFUNC
They are meant to be used within a external function or any other function with
object name like diplay file, edit file. Internal functions are like common
subroutines which are created to be shared among different programs.
EXTUSRSRC
user-written high-level language source code is to be included within the source code generated by a
calling function.
EXTUSRPGM
Types of Role.
1. R - Restricted. Function will read access path to find exact matching record.
2. M - Map. Function will read access path from the beginning.
3. P - Position. Function will read access path to find closedst matching record.
Types of Usage.
C EXSR SARVGN
C EXSR SBRVGN
Type of context fields in synon?
File transfer SFTP
JIRA
IMPL
ALDON
TURNOVER
Topics to be prepared
PF
DEBUG
ACTIVATION GROUPS
OPNQRYF
CHGPF
DFTACTGRP
TYPE OF ARRAYS
DATA STRUCTURES
PRINT FILES
CL
Types of errors in CL
COMMAND LEVEL
PROGRAM LEVEL
*PSSR
ON ERROR
CONSTRAINTS IN PF
CHGPF
SUBSYSTEM
WRKSYSSTS
OUTQ
WHY OUTQ
PHYSICAL FILE
OPNQRYF
PART-1
1-How SFLSIZ and SFLPAG differs with all 3 types of Subfiles?
Types of subfiles :
LOAD SFLPAG number of records on screen and when page down we are clearing buffer.
LOAD SFLPAG number of records on screen and when page down we are not clearing
buffer.subfile is growing
2-How to identify whether any job is interactive or batch in CL, in RPG and normally?
Jobs with status BCH and INT USING Command WRKACTJOB TYPE COLUMN
In CL –RTVJOBA , check for parameter TYPE value 0 means batch and vaue 1 interactive
In RPG API QUSRJOBI field QUSJT04 which contains value for job B batch I interactive.
4-How do you set pointer to some value or its next or higher value?
SETGT in RPG
SBMJOB
6-How can we translate values from lower to upper in RPG and Embedded SQL in RPG?
%XLATE
SNDRCVF command in CL ,
No UPDATE OR INSERT
MONMSG MSGID(CPF0000)
Answer:
Like F6 to add
Report design
13-What is *PSSR?
HOST VARIABLES
DSPDBR
BY USING BIF
PART-2
1-Which library gets loaded first when we login to IBM i?
dspdbr
dspfd
chgpf
EXTMBR(‘MEMBERNAME)
EXTMBR(‘ALL)
8-What is the purpose of using Varying? D Var1 S 10A Varying /Free Var1 = 'HELLO'; /End-Free 9-
What is CPF4131?
SFLCTL
SFLDSP
SFLPAG
SFLSIZ
SFL
INLR
CLOSES FILE
CLEAR MEMORY
14-What is the effective use and side effects of *INLR? How to overcome the side effects? Example
use case scenario?
Activation group
17-How can we execute a CL command from within RPG program without calling a CL program?
QCMDEXC API
SYSTEM C API
QCAPCMD
18-Can we use a file with same file and record format name in RPGLE?
No, BUT THIS CAN BE DONE BY REMANMING THE RECORD FORMAT IN FSPECS
19-What are those commands which can only be executed in CL program but not in RPG program?
PART-3
1-What is the maximum length of a variable name in CL program?
SERVICE PROGRAM
BINDER LAGNUAGE
STRPGMEXP
SINGATURE
ACTIVATION GROUP