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

Usage & functioning of the utility ?IEFCOPY? in cobol


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

New User


Joined: 22 Mar 2005
Posts: 15
Location: Chennai

PostPosted: Wed Mar 14, 2007 12:12 pm
Reply with quote

Can anyone help me out on the usage & functioning of the utility ?IEFCOPY? in cobol program?
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Mar 14, 2007 2:41 pm
Reply with quote

Quote:

?IEFCOPY? in cobol program?

Not quiet sure what you exactly want. Please elaborate. icon_smile.gif
Back to top
View user's profile Send private message
Shobana

New User


Joined: 22 Mar 2005
Posts: 15
Location: Chennai

PostPosted: Wed Mar 14, 2007 2:44 pm
Reply with quote

The syntax used in our COBOL programs is like:

Case 1: IEFCOPY KAT000.WK_SERV_PRVDR_ID FLDLVL=10, PREFIX=H.

The above statement is replaced in the compile listing as:
10 H000-WK-SERV-PRVDR-ID PIC X(4).

(KAT000 is a DB2 table, FLDLVL specifies at which level it has to be copied & prefix specifies the first character of the variable to be start).

Case 2: IEFCOPY KAT009 PREFIX=L.

The above statement is replaced with the entire structure the KAT009 table as below in the compile listing?

05 L009-AFFILIATE-ID PIC X(1).
05 L009-ADJUSTMENT-LEVEL PIC X(1).
05 L009-ADJ-ACTIVITY-CODE PIC X(1).
05 L009-ADJUSTMENT-ID PIC X(5).
05 L009-ADJUSTMENT-DATA PIC X(15).

Pls let me know if you have any information on the funcationality of IEFCOPY here in the cobol program.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Mar 14, 2007 3:19 pm
Reply with quote

From your posts I can figure out that IEFCOPY is not an IBM utility program.
(First I thought you wanted to know IEBCOPY icon_smile.gif and you made a spelling mistake icon_biggrin.gif .. ) It may be some home made utility program for use on your site.
Check your compiler JCL, before the compiler step, there should be some program which preprocesses IEFCOPY statements and replaces it with the VARIABLE declarations as you have posted.
Good luck. icon_smile.gif
Back to top
View user's profile Send private message
Shobana

New User


Joined: 22 Mar 2005
Posts: 15
Location: Chennai

PostPosted: Wed Mar 14, 2007 3:31 pm
Reply with quote

Thanks a lot Abhijit. icon_smile.gif
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Mar 14, 2007 3:40 pm
Reply with quote

You are welcome icon_smile.gif
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top