shishir singh


{ City } agra
< Country > india
* Profession * associate developer
User No # 100485
Total Questions Posted # 2
Total Answers Posted # 15

Total Answers Posted for My Questions # 10
Total Views for My Questions # 22859

Users Marked my Answers as Correct # 33
Users Marked my Answers as Wrong # 16
Questions / { shishir singh }
Questions Answers Category Views Company eMail

difference between 1:%found and %equal built function in detail with example .

Polaris,

6 RPG400 13533

suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .

CSC,

4 RPG400 9326




Answers / { shishir singh }

Question { 27804 }

how to see all source files in a particular library?

ex:xyz is a library name
a,b,and c..... are source files how to see?


Answer

USE THIS COMMAND :
WRKOBJPDM (PRESS ENTER)
OBJATR(PF_SRC)

Is This Answer Correct ?    0 Yes 0 No

Question { 13104 }

Can we create 300 logical files based on a single physical
file using the CRTLF command only once?.


Answer

no , we can create one logical file on one physical file at a time .......and for thoe who are saying yes then please explain it in details with steps so we can also try it practically ...till then my answer is no

Is This Answer Correct ?    1 Yes 0 No


Question { CTS, 12368 }

how do u find whether a record is locked or not??


Answer

wrkobjlck : this command is basically used to find weather record of file is lock or not

Is This Answer Correct ?    4 Yes 2 No

Question { CTS, 12195 }

3 members in databasefile .how to read records from all the
members??


Answer

in cl as explained by swadesh sir ..........ovrbdf *all
ok

Is This Answer Correct ?    1 Yes 0 No

Question { 12526 }

Is LDA can be access accross the Job?


Answer

yes we can access it ......we are not allow to create LDA or delete LDA becoz it been done by system as we all know ....when a job begain and LDA is created .....ok so you can use LDA during that process ......
please let me know if i was wrong and dont mind

Is This Answer Correct ?    0 Yes 0 No

Question { 12526 }

Is LDA can be access accross the Job?


Answer

sorry want to menstion one more thing that ...........that u can access the lda of j1 job ....but you are not allow to access the lda of j1 and use that lda in j2 ok .......

Is This Answer Correct ?    0 Yes 0 No

Question { IBM, 11289 }

I have two sessions S1 & S2 under this 3 jobs(say j1,j2,j3
under session S1) And 2 jobs(Say j4, j5 Under session S2)is
running. How many QTEMP & how many LDA will create for the
same.


Answer

total 7 qtemp+ 7 LDA is the right answer

Is This Answer Correct ?    2 Yes 0 No

Question { IBM, 5930 }

what is meant by object lock requests,held locks and locks
waiting to be applied(wrkobjlck)
why should we apply for locks.Please explain sir.


Answer

suppose we want to make any update on particular file A and during my process one more guy doing another updation on that file A ....so what happen that who ever make the last updation and compile the file will take place ....so what we do we hold that particular object and lock it ....so during the time when we are using that file no one will access that file ........ok ....and updation will take place step by step

Is This Answer Correct ?    1 Yes 0 No

Question { Virtusa, 9429 }

1. If my rpg program has a date field, What extra care I
have to take while compiling that RPG program?
2. If the file is keyed and I have declared the file as well
as Key list properly in my program. Still am getting an
error message like "Chain/reade operation is not allowed"
What may be the case?


Answer

in f specification may b you forget to define "record address type" = 'k' bcoz in chain searching of data can only b possible through key field ( key is madatory in chain operation )

Is This Answer Correct ?    2 Yes 1 No

Question { 10095 }

what is batch debug in as400?


Answer

batch job means running job in background to save the time.so user are not able to make the interaction with batch job.suppose there in and issue occured or error occured in job of batch .now you have to find the error but how as that job is running in batch and we are not able to make intercation with that job in batch so what we do . we remotly access that batch job through strsrvjob command .when we remotly access that job than it will convert into interactive job .after making it interactive job we can debug that job and find the error.
i short we have to make batch job to interactive job for solving the error or to debug the program.

please correct me if i m wrong .

Is This Answer Correct ?    5 Yes 0 No

Question { L&T, 6957 }

i want to retrieve record b/w 2 dates in as400


Answer

you can retrieve record between 2 dates is through openqry file :
ovrdbf share =*yes
oprnqry in condition there is a range parameter write those 2 dates between them
call program
dltovr
clof

Is This Answer Correct ?    0 Yes 1 No

Question { IBM, 7113 }

What does Implicit Open means with respect to a file ? What
about the Explicit Open?..what are the major differences
between these two?


Answer

Imlicit open means file is open by program which is automaticaly done whne we call a program .
Explicit open means you open a file thorugh f-specification keyword "usropn " and then open and close the file means in explicit open the authority of opening and closing the file is done by programmer according to the requirements.
this is also the basic diffreence .
i am also new in AS400 if i am incorrect please let me know .

Is This Answer Correct ?    10 Yes 1 No

Question { IBM, 6926 }

Hi, can any one tell me :IN CASE OF SINGLE PAGE FILE HOW WILL
I LOAD THE PREVIOUS PAGE WITHOUT THE USE OF SFLCLR INDICATOR
?


Answer

thanx sridevi

Is This Answer Correct ?    0 Yes 0 No

Question { Polaris, 13533 }

difference between
1:%found and %equal built function in detail with example .


Answer

Sachin bhai thanx : will you please elaborate it more

Is This Answer Correct ?    1 Yes 2 No

Question { Mind Tree, 11446 }

i have a file with the values 10, 20, 30, 40, if am setll with
the value 25 then readp, so what it will return?


Answer

DEAR ITS REALLY SIMPLE U SHOULD TRY IT ON YOUR OWN:
SUPPOSE EMPNO FIELD IS KEY FIELD OF FILE HAVING RECORD :10,20,30,40
SO WAT HAPPEN READP READ PREVIOUS RECORD AND SETLL SEARCHING DATA THROUGH KEYFIELD
SO AFTER READING RECORD 20 IT GOES TO 30 BUT WE ARE SEARCHING FOR 25 WHICH IS NOT PRESENT SO IT WILL RETURN 20 AND OUTPUT
MEANS IF FIELD HAVING DATA LIKE : 10,20,24,30,40
THEN IN THIS TIME OUTPUT WILL ME 24 OK BYE T.C

Is This Answer Correct ?    6 Yes 9 No