Im traying to get out put of this below mention simple
logic code.But im geting out of different.(im trying with
my laptop trhough my company server.
DCL &FIELD1 *CHAR 10 VALUE('TCS AS/400')
DCL &FIELD2 *CHAR 10
CHGVAR(%SST(&FIELD2 1 10))(%SST(&FIELD1 10 1)
Can you tell me the value of field2 after excuted of CHGVAR
command.
Answers were Sorted based on User's Feedback
How to find d key field of a pf that doesn’t have source physical file?
what do you mean by an input subfile, what are the keywords required?
What is the syntax of passing parameters to a procedure by value?
HOW DO YOU DISPLAY A DISPLAYFILE AT OTHER WORKSTATION? CAN WE MOVE A PHYSICAL FILE? WITHOUT MOVING A FILE?
What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.
Suppose my file has 10 fields and I want to make the 2nd field zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?
In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening
1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm when the job runs? write an logic? 3.In wich command the option *drop is used?
I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)
how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.
In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?
What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???