Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Usage & functioning of the utility ?IEFCOPY? in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Usage & functioning of the utility ?IEFCOPY? in cobol
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: 686
Location: Earth

PostPosted: Wed Mar 14, 2007 2:41 pm    Post subject:
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    Post subject:
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: 686
Location: Earth

PostPosted: Wed Mar 14, 2007 3:19 pm    Post subject:
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    Post subject:
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: 686
Location: Earth

PostPosted: Wed Mar 14, 2007 3:40 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us