View previous topic :: View next topic
|
Author |
Message |
ratheesh_1983
New User
Joined: 11 Apr 2007 Posts: 19 Location: hyderabad
|
|
|
|
Hi,
I am having a program which is being called by another program . A part of the linkage section is pasted here.
_________________________________________________
LINKAGE SECTION.
01 WL-001-REPORT-FUNCTION
VALUE space PICX.
COPY WA999950.
01 WL-003-HOLD-CYCLE-DATES.
05 WL-003-CYCLE-DATE-MMDDYY
PIC 9(06).
05 WL-003-CYCLE-DATE-PRINT PIC X(10).
05 WL-003-PROCESSING-DATE PIC X(10).
05 WL-003-PROCESSING-TIME PIC X(08).
___________________________________________________
I already have the output from the calling program, in a data set.
how do i map those values see the data in the format shown in the linkage section?
I have heard of file aid option but can i use it to view in the format specified in the linkage section?????? |
|
Back to top |
|
|
sandeep1dimri
New User
Joined: 30 Oct 2006 Posts: 76
|
|
|
|
Hi
If i got ur requirement right
1> u already have linkage data from calling program in a dataset??
2> no u want to map the dataset generated in step 1
then waht u can do is first copy all ur linkage
and make a new copy book with decalartion
01 WL-001-REPORT-FUNCTION
VALUE space PICX.
COPY WA999950.
01 WL-003-HOLD-CYCLE-DATES.
05 WL-003-CYCLE-DATE-MMDDYY
PIC 9(06).
05 WL-003-CYCLE-DATE-PRINT PIC X(10).
05 WL-003-PROCESSING-DATE PIC X(10).
05 WL-003-PROCESSING-TIME PIC X(08).
==> say copybook-1
now map ur dataset of step 1 with the coopy book copybook-1
Please let me know if i got u right if so do u need any more on this
Sandeep |
|
Back to top |
|
|
ratheesh_1983
New User
Joined: 11 Apr 2007 Posts: 19 Location: hyderabad
|
|
|
|
Hi sandeep1dimri ,
I made the copybook and used file aid to view the values , but it says the copybook is not cataloged!!!! do i need to do something else too after creating the copybook and then use file aid??
BTW thanks for the earlier reply .
ratheesh. |
|
Back to top |
|
|
sandeep1dimri
New User
Joined: 30 Oct 2006 Posts: 76
|
|
|
|
hey just check the file aid setting and also check it whether u hve save ur copy book
i hope ur using batch option 1
if u r still facing some problem pls let me know
sandeep |
|
Back to top |
|
|
ratheesh_1983
New User
Joined: 11 Apr 2007 Posts: 19 Location: hyderabad
|
|
|
|
Hi,
I am getting like "error in line 35'. What cud be the possible cause of this sandeep? Is it a problem with the data or the layout??
BTW i have already replaced the "COPY WA999950. " statemnt in the layout with the content of the copybook WA999950 .
regards,
ratheesh |
|
Back to top |
|
|
sandeep1dimri
New User
Joined: 30 Oct 2006 Posts: 76
|
|
|
|
Hi
it may be syntax error at that line(line 35)while declaring the data variable .
plse post that line so that we can suggest on that.
sandeep |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Quote: |
01 WL-001-REPORT-FUNCTION
VALUE space PICX. |
Shouldn't the value clause come after the picture clause?
Also there should be a space betn PIC and X.
You have to be sure about your layout if linkage section contains multiple 01 level variables. Make adjustments accordingly. |
|
Back to top |
|
|
|