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
what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code
Can we possible to key with the date field?
How to print output from openquery in as400 ?
1.I have a Physical file with 100 records, No duplicates exists, all are Unique,But while i am running Runqry utility i am getting only 80 records..What could be the reason?
Can somebody tell me that, Is it possible to read all the member of PF without OVRDBF?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?
How do I link an existing logical file to it's Physical File without recompiling?
Mr.Sidc sirfor my question{how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE} you have answered using MOVE opcode,can you illustrate me with a small example sir very kind of you.
wat is curser?? and its types???
Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.