swadesh yadav


{ City } bangalore
< Country > india
* Profession * s/w developer
User No # 21078
Total Questions Posted # 6
Total Answers Posted # 28

Total Answers Posted for My Questions # 32
Total Views for My Questions # 95300

Users Marked my Answers as Correct # 327
Users Marked my Answers as Wrong # 112
Questions / { swadesh yadav }
Questions Answers Category Views Company eMail

what is the difference between SETON RT & RETURN?

5 RPG400 19917

Can anybody tell me that why we use option(*nodebugio)in H- Spec?

3 RPG400 22655

How many max. Record format a logical file have?

Systime,

13 DB400 21628

What is the Record Address file. How can we use it in RPG program?

4 RPG400 9561

Can anybody tell why Journalling is compulsary before Commitment Control?

2 DB400 6468

Why we create the Physical File Member?

5 DB400 15071




Answers / { swadesh yadav }

Question { Four soft, 17344 }

How to position the cursor on a display file at a desired
location.


Answer

One way is, go to display attribute property of display
file and position the cursor on desire fields by
DSPATR(PC).cursor will be set on that field.

Is This Answer Correct ?    17 Yes 4 No

Question { IBM, 37052 }

what is the difference between clear and reset opcodes and
open and close opcodes?please tell me in real time senario
with example please?

And

What is the use of SFLNXTCHG?Where we can use this?


Answer

clear and reset both opcodes are used for clearing the
fields.difference is that clear only clear but reset is
used for clear & then initialise the numeric fields with
zero and character with blanks.

OPEN & CLOSE opcodes are used for explicitly open and
close the file.In precise all files are automatically open
when these are processed by program bt at somepoint if we
want this should not be implicitly then open we use these
keywords.
SFLNXTCHG :Its always read those records which changed 2
or more times.this is declared in subfile(SFL) format not
SUBCTL format.

Is This Answer Correct ?    14 Yes 8 No


Question { 6728 }

whare we can use IN AND OUT AND UNLCK opcodes?please can
any body tell me in real time senario with example


Answer

When we use data area in (RPG400) we can read this by IN
write through OUT and when write data area we lock this
after write we UNLOCK it.so that we can use this again.

Is This Answer Correct ?    4 Yes 0 No

Question { 21449 }

Hey,

What is the difference between SCAN,CHECK,XLATE OPCODES?
please give me the answeres with example in real time
senario?


Answer

SCAN:this allows to locate a character or string of
character within a character field.e.g if we want a string
like 'abc'exist in a base string like 'mnoabcd'or not.
fact1 opcode fact2 result hi lo eq
'abc' scan 'mnoabcd' var-name 90
value of var_name=4 & indicator 90 will be on.
CHECK:this is just opposite of scan.findout absence of
character or string of character.
fact1 opcode fact2 result hi lo eq
'123456' check '111*1' var-name 90
value of var_namr=4 & indicator 9 will be off on this
position.
XLATE:convert to upercase charecter to lowercase character
or vice-varsa.
declare in input specification as record identification
codes.
I 'ABCDEFGHIJKLMNOPQRSTUV C UC
I WXYZ'
I 'abcdefghijklmnopqrstuv C LC
wxyz'
then uses in c-spec.
c UC:LC xlate any-name result length_dec
if fact2 is-RAHUL u will get rahul.

Is This Answer Correct ?    40 Yes 1 No

Question { IBM, 20487 }

how to check on which PF , the LF is dependant ?


Answer

If i have an LF and i want to know on which PF it is depend
-BY DSPFD command(give the LF name & Library name).

Is This Answer Correct ?    26 Yes 3 No

Question { IBM, 27852 }

how to change job priority when it is running in sub
system ?


Answer

Hi,
I am not sure such kind of command(CHGJOBPTY)is
available.But by WRKSBSJOB(work with subsystemjob)
we can change the run priority of the job.

Is This Answer Correct ?    9 Yes 2 No

Question { CTS, 25292 }

Q.1.What is differences in STRDBG and STRISDB debugging
commands?

2.Where we should use STRDBG and STRISDB Debugging commands?


Answer

STRDBG basically used in RPGIV programs while STRISDB used
in RPGIII.

Is This Answer Correct ?    12 Yes 20 No

Question { 9490 }

I am working in session1 ans session2. In session1 3 jobs
are running. In session2 2 jobs are running. How many LDA
and temporary files will be created?


Answer

For Session1- 1 LDA + 1 QTemp
For Session2- 1 LDA + 1 QTemp
In Session1 3 Jobs running..
So 3 LDA+ 3 QTemp
In Session2 2 Jobs is running..
So 2 LDA + 2 QTemp
Total LDA 1+3+2=7
Total QTemp 1+3+2=7

Is This Answer Correct ?    7 Yes 2 No

Question { 9490 }

I am working in session1 ans session2. In session1 3 jobs
are running. In session2 2 jobs are running. How many LDA
and temporary files will be created?


Answer

Sorry!! Correction in above
Total LDA 2+3+2=7
Total QTemp 2+3+2=7

Is This Answer Correct ?    5 Yes 4 No

Question { 12174 }

How many MONMSG commands can declare in a CL program?


Answer

100 Program Level and 100 Command level MONMSG we can
declared.

Is This Answer Correct ?    11 Yes 12 No

Question { 7330 }

Can you use multi format LF in CL program?


Answer

No.Only Single Record format file we can use.

Is This Answer Correct ?    9 Yes 2 No

Question { CTS, 8890 }

i have two pfs it contains "Status" fields in the same
name "status in both the pf's...But i used the same name
in display file...when i enter a status thru disp file it
willbe added to pf1...so i want to rename "Staus " field in
pf2 through program...............wat will do..give coding?


Answer

You need to use prefix keyword when you declare the file
FPF2 IF E DISK PREFIX(S)

Where 'S' is any desired name by this all fields of PF2
will start with S alphabet.

Is This Answer Correct ?    9 Yes 0 No

Question { CTS, 8890 }

i have two pfs it contains "Status" fields in the same
name "status in both the pf's...But i used the same name
in display file...when i enter a status thru disp file it
willbe added to pf1...so i want to rename "Staus " field in
pf2 through program...............wat will do..give coding?


Answer

Absolutly!!

Is This Answer Correct ?    0 Yes 0 No

Question { 24178 }

How can we make use of SETLL operation in CL?


Answer

By OVRDBF Command

Cheers!!

Is This Answer Correct ?    3 Yes 5 No

Question { 20378 }

How can you delete records form a file in rpg without
using "Delete" OPCODE?


Answer

Hi Syam,
According to me, if you don't want Delete opcode
so use Embedded Sql in Rpg....Right?

Is This Answer Correct ?    1 Yes 0 No

 [1]   2    Next