karthik


{ City } hyderabad
< Country > india
* Profession *
User No # 103467
Total Questions Posted # 0
Total Answers Posted # 9

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 22
Users Marked my Answers as Wrong # 4
Questions / { karthik }
Questions Answers Category Views Company eMail




Answers / { karthik }

Question { 13151 }

What is SDA used for?


Answer

SDA means SCREEN DESIGN AID

WHICH IS USED TO -->1)DESIGN SCREENS

-->2)MENU DESIGNING

-->3)WE CAN TEST DISPLAY FILES

WE CAN START OUR SCREEN DESIGNING BY USING "STRSDA" COMMAND

Is This Answer Correct ?    3 Yes 0 No

Question { Accenture, 18453 }

WHAT IS THE DIFFERENCE BETWEEN 'COLHDG' AND 'ALIAS'?


Answer

PF::A R RCD
A NAME 9A ALIAS(YOUR)
A AGE 2P COLHDG('IN YEARS')


OUTPUT: 000001 KARU 57
000002 LAV 24
000003 MAI 24

I THINK NOW YOU HAVE CLEAR IDEA.... RIGHT...

Is This Answer Correct ?    0 Yes 1 No


Question { 10811 }

YOU CAN DELETE THE RECORD SPACE PERMENANTLY IN PHYSICALFILE
THROUGH CL?


Answer

CL.... Only for displaying data in a FILE..

we can't update/delete/insert data into a file through CL PROGRAM...

Is This Answer Correct ?    2 Yes 1 No

Question { CybAge, 30382 }

i want to display the 10000 record in a subfile by using
loadall , can we do it?


Answer

for a subfile.... we can display at most "9999" RCDS ONLY...

Is This Answer Correct ?    3 Yes 0 No

Question { 5144 }

Hi friends,
Can you give the solution for the below mention simple
code.and explain.what is output

D CHR1 S 4A INZ('PEN')
D CHR2 S 10A INZ('MYGET')
D CHR3 S 8A INZ('GOOD')
D CHR4 S 22A INZ
C MOVEL CHR1 CHR4
C MOVE CHR2 CHR4
C EVAL CHR4=CHR3
C MOVE CHR1 CHR4


Answer

PGM: *************** Beginning of data ***********************
DCHR1 S 4A INZ('PEN')
DCHR2 S 10A INZ('MYGET')
DCHR3 S 8A INZ('GOOD')
DCHR4 S 22A
C MOVEL CHR1 CHR4
C MOVEL CHR2 CHR4
C EVAL CHR4=CHR3
C MOVE CHR1 CHR4
C CHR1 DSPLY
C CHR2 DSPLY
C CHR3 DSPLY
C CHR4 DSPLY
C SETON
****************** End of data **************************



O/P:
DSPLY PEN
DSPLY MYGET
DSPLY GOOD
DSPLY GOOD PEN

Is This Answer Correct ?    2 Yes 0 No

Question { 6449 }

What would be the output of the variable result?

D RESULT S 5S O INZ(00011)
C EVAL RESULT = %TRIM(RESULT)

Please give me the correct answer for this
A.0001
b.compile time error
c.11
d.Runtime error


Answer

FIRST Thing is "%TRIM" is valid only for


CHARACTER type variables...


so here your variable is DECIMAL... so while COMPILATION TIME ERROR OCCURS....

MSG: The parameter for %trim is not valid..

Is This Answer Correct ?    2 Yes 0 No

Question { Bank Of America, 29188 }

How to know the number of records in a pf through clp program?


Answer

This is the EXACT CODE if you have any doubt.... mail me@
Gatlakarthik@gmail.com

DCL VAR(&R1) TYPE(*DEC) LEN(10 0)
DCL VAR(&D1) TYPE(*CHAR) LEN(2)
DCLF FILE(PF12) RCDFMT(RCD1)
RTVMBRD FILE(PF12) NBRCURRCD(&R1)
CHGVAR VAR(&D1) VALUE(&R1)
SNDPGMMSG MSG(&D1)

Is This Answer Correct ?    5 Yes 2 No

Question { IBM, 7640 }

Can we used ovrdbf command after the opnqry file if yes then
What will be out put of your program?


Answer

hi...naveen.. can you elaborate your answer plz...

Is This Answer Correct ?    1 Yes 0 No

Question { TCS, 10329 }

Suppose if a physical file is having 1000 records, but i
deleted 500 records from it. Here the concern is can the size
of the file changes or it remains the same... kindly help me
out with thorough xplanation.... Thanks in-advance...


Answer

SIZE Won't change....

after deleting 500 records from 1000 records...

and then IF you want to insert NEW RECORDS

THAT RECORDS WILL ADDED AFTER THE 1000TH RECORDS PLACE......
BUT IF YOU WANT USE THE SPACE OF DELETED RCDS USE...

RCZPFM ON THAT PF...

THEN SIZE CHANGES...........

Is This Answer Correct ?    4 Yes 0 No