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.
Answers were Sorted based on User's Feedback
Answer / katiyar
Select the format of Date (For E.g. *MDY(MMDDYY),
*DMY(DDMMYY) or *USA(MMDDYYYY).....etc and have value in
your variable "YourDate". Verify the date format by coding
as mentioned below.
--------------------RPG---------------------------------
*MDY Test (D) YourDate 99
If *In99 = *On
'Invalid' Dsply
Else
'Valid' Dsply
EndIf
**99 is indicator.
----------------------RPGLE-----------------------------
*MDY Test(DE) YourDate
If %Error
'Invalid' Dsply
Else
'Valid' Dsply
EndIf
---------------------------------------------------------
| Is This Answer Correct ? | 6 Yes | 0 No |
How do I link an existing logical file to it's Physical File without recompiling?
can we perform CHAIN operation on Subfile record format....?
if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.
WHAT IS MEANT BY SIGNATURE VAILOTION ERROR
Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?
can we use cl programming to update or delete physical files
When a object will be locked & when a record will be locked? Plz explain.
What is the name of default out queue when user logs inn to syatem with valid profile?
suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg
1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword
How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?
what is plat file?