IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to see the variable values in the called program??


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ratheesh_1983

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Tue Jun 26, 2007 4:24 pm
Reply with quote

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
View user's profile Send private message
sandeep1dimri

New User


Joined: 30 Oct 2006
Posts: 76

PostPosted: Tue Jun 26, 2007 4:35 pm
Reply with quote

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
View user's profile Send private message
ratheesh_1983

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Tue Jun 26, 2007 5:29 pm
Reply with quote

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 icon_razz.gif .

ratheesh.
Back to top
View user's profile Send private message
sandeep1dimri

New User


Joined: 30 Oct 2006
Posts: 76

PostPosted: Tue Jun 26, 2007 6:23 pm
Reply with quote

hey just check the file aid setting and also check it whether u hve save ur copy book icon_smile.gif

i hope ur using batch option 1

if u r still facing some problem pls let me know

sandeep
Back to top
View user's profile Send private message
ratheesh_1983

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Tue Jun 26, 2007 8:09 pm
Reply with quote

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 .

icon_surprised.gif
regards,
ratheesh
Back to top
View user's profile Send private message
sandeep1dimri

New User


Joined: 30 Oct 2006
Posts: 76

PostPosted: Thu Jun 28, 2007 9:07 am
Reply with quote

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
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Jun 28, 2007 10:29 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top