View previous topic :: View next topic
|
Author |
Message |
Amit tandon Warnings : 1 New User
Joined: 29 Jul 2010 Posts: 6 Location: mumbai
|
|
|
|
I hav
01-APPLICATION-DATE.
10 -APPLICATION-YEAR PICTURE S9(3)
COMPUTATIONAL-3.
10 -APPLICATION-DAY PICTURE S9(3)
COMPUTATIONAL-3.
I want to these variable in to my working storage and how to display what is year?
plz help me out from these ASAP |
|
Back to top |
|
|
sriram.mukundan
New User
Joined: 20 Nov 2007 Posts: 28 Location: chennai
|
|
|
|
Hi Amit,
Welcome to the forum.
Refer the below example.
05 WK-1 PIC S9(05)V9(02) COMP-3.
05 WK-2 PIC 9(6)V99.
MOVE WK-1 TO WK-2.
Will does your job. put a display for Wk-2. |
|
Back to top |
|
|
Amit tandon Warnings : 1 New User
Joined: 29 Jul 2010 Posts: 6 Location: mumbai
|
|
|
|
Thanks... Buddy,
But here i want to display only year and it will give me date and year value combine. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Quote: |
plz help me out from these ASAP |
If you believe you need ASAP, the forum is the wrong place to look - we don't do asap. . .
We also do not respond well to "requirements" that are not clearly posted. You know what you are talking about, but few others will. You need to provide sufficient information for somone to be able to provide a useful reply.
Quote: |
I want to these variable in to my working storage |
What does this mean . . . ?
If you clearly show what you "have" and what you want to accomplish, someone will have a suggestion. |
|
Back to top |
|
|
Amit tandon Warnings : 1 New User
Joined: 29 Jul 2010 Posts: 6 Location: mumbai
|
|
|
|
Thanks,
Actually this is copybook varibale.And i need these into my PS file.
With year i need to perform some operation. so before performing any operation i need to display wether i m getting right year(Ex 2010) or not.
is it sufficeint or ned more infomation on that. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If the variables posted are correct, all you need to do is compare the value in the year variable against the "year" (Ex 2010) and do "whatever" acordingly.
If you are looking for more of an answer, you need to provide more of an explanation. . . |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
Amit tandon wrote: |
I hav
01-APPLICATION-DATE.
10 -APPLICATION-YEAR PICTURE S9(3)
COMPUTATIONAL-3.
10 -APPLICATION-DAY PICTURE S9(3)
COMPUTATIONAL-3.
I want to these variable in to my working storage and how to display what is year?
plz help me out from these ASAP |
If your structure has defined only 2 bytes (3 packed decimal digits) for year value, you cannot expect to get 4 digits into it, as the value 2010. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Kjeld,
Yup, as posted it is a mystery. . .
I wasn't sure how 2010 was to be compared against 3 digits, but if that was the example, i was willing to "go with it . . ."
Maybe there will be some clarification posted. . .
d |
|
Back to top |
|
|
|