‎2006 Jun 26 9:43 PM
Hi,
I want to display each digit of the date (MM DD YYYY) in different boxes in a window. Could you please suggest me.
Thank you
‎2006 Jun 26 9:45 PM
Hi Narasimha,
WELECOME TO SDN
draw boxes using BOX statement and then split the variable which is containg date in to three variable and then display them in the boxes that you have created.
Draws a horizontal line across the complete top edge of the window.
/: BOX WIDTH 0 TW FRAME 10 TW
Draws a vertical line along the complete height of the left hand edge of the window.
/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
Regards,
Santosh
‎2006 Jun 26 10:00 PM
Thank you Santhosh for responding to my post. I want to create 8 different boxes separated by space to dispaly the 8 digits(M M D D Y Y Y Y).
Thank you
‎2006 Sep 08 7:45 PM
Hi korada,
Even i have a same issue how did you solve that date issue ?
m m d d y y y y in 8 boxes .
plz provice some suggestion
thnx
‎2006 Jun 27 6:33 AM
Hi Korada,
In Scripts there are special syntaxs to set the date format.
<b>/: SET DATE MASK = 'MM.DD.YYYY'</b>
&SYST-DATUM&
your date will print in the format of 27.06.2006
There are other formats like
<b>DD</b> - day in two digits
<b>DDD</b> - name of day abbreviated (MON, SUN)
<b>DDDD</b> - name of day written in full (Sunday)
<b>MM</b> - Month in two digits
<b>MMM</b> - Month abbreviated in 3 digits (JUN, JAN)
<b>MMMM</b> - Month written in full (April)
<b>YY</b> - Year in two digits
<b>YYYY</b> - Year (4 digits)
In order to revert back to the standard setting
<b>/: SET DATE MASK = ' '</b>
Hope this sovles ur issue.
Regards,
Tushar
‎2006 Jun 27 6:38 AM
Formatting Date Fields: SET DATE MASK
To define the formatting of date fields, use the SET DATE MASK control command. Executing this command causes all subsequent date fields to be printed using the specified format.Formatting Time Fields: SET TIME MASK
To format time fields to your needs, use the SET TIME MASK control command. Executing this command causes all subsequent time fields to be printed using the specified format.The time mask may be reset to the default setting by using an empty string:
/: SET TIME MASK = ' '
regards
vinod
‎2006 Jun 27 6:46 AM
Hi Narasimha,
Using the split command separate all the 8 digits in eight varaiables.Create 8 boxes for all the 8 variables and place them as per your requirement.Put all the 8 variable that represent 8 digits in the respective boxes