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

FILEAID utility in Batch


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Thamilselvi

New User


Joined: 22 Jun 2012
Posts: 57
Location: Chennai

PostPosted: Thu Aug 16, 2012 2:36 pm
Reply with quote

Hi,

I need to get the output as start position and length of the copybook member from a PDS using fileaid utility in batch.

Is this possible in batch using fileaid utility?

If so, please help me to get the required output.
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Thu Aug 16, 2012 2:39 pm
Reply with quote

Hi,
Yes, It is possible. Look for RLPRINT in Fileaid batch manual.
Back to top
View user's profile Send private message
Thamilselvi

New User


Joined: 22 Jun 2012
Posts: 57
Location: Chennai

PostPosted: Thu Aug 16, 2012 2:40 pm
Reply with quote

Thanks a lot icon_biggrin.gif
Back to top
View user's profile Send private message
Thamilselvi

New User


Joined: 22 Jun 2012
Posts: 57
Location: Chennai

PostPosted: Thu Aug 16, 2012 3:31 pm
Reply with quote

Hi,

In my workarea, there were no fileaid. Here we using filemanager.

is there any way to do the above requirement?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 16, 2012 3:57 pm
Reply with quote

Thamilselvi,

First you said "Thanks a lot" and later you said
Quote:
In my workarea, there were no fileaid. Here we using filemanager.
... icon_confused.gif

Well, the short answer is, it's doable using File-Aid in batch BUT you've to have the product installed at your shop. As, IBM file Manager and File-Aid are two different products from different vendors.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 16, 2012 4:09 pm
Reply with quote

if you put your copybook in the Linkage Section of a cobol module,
the mapping from a compile
will give you the starting position
and length of each field,
based on zero.

the starting positions will be in hexadecimal.

as far as filemanager is concerned:
IBM Education Assistant: IBM FileManager
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Aug 16, 2012 5:08 pm
Reply with quote

If you do not have File-Aid why did you ask for a File-Aid solution?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 16, 2012 7:15 pm
Reply with quote

Nic Clouston wrote:
If you do not have File-Aid why did you ask for a File-Aid solution?
Yes, that's the confusion with me too, since the start.

However, after reading what Dick has said and in a try to read between the lines on problem-description by OP, I'd say select "Batch execution" when using IBM File Manager and one'll get something like this:

Code:
//FILEMGR  EXEC PGM=FMNMAIN                                           
//*STEPLIB  DD DSN=SYS1.SFMNMOD1,DISP=SHR                             
//* If using WMQ queues via batch, uncomment and update MQHLQ to suit
//* your sites WMQ high level qualifier                               
//*        DD DSN=MQHLQ.SCSQLOAD,DISP=SHR                             
//*        DD DSN=MQHLQ.SCSQANLE,DISP=SHR                             
//*        DD DSN=MQHLQ.SCSQAUTH,DISP=SHR                             
//*        DD DSN=IGY.SIGYCOMP,DISP=SHR                               
//FMNCOB   DD DUMMY    Uncomment to force use of FM COBOL Compiler   
//*FMNCLERR DD SYSOUT=* Uncomment to force output of Compiler listing
//SYSPRINT DD SYSOUT=*                                               
//FMNTSPRT DD SYSOUT=*                                               
//SYSTERM  DD SYSOUT=*                                               
//SYSIN    DD *                                                       
$$FILEM SET HEADERPG=YES,PAGESIZE=60                                 
$$FILEM PBK DSNIN=your.pds.for.copybook,                               
$$FILEM MEMBER=*                                                     
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 16, 2012 7:30 pm
Reply with quote

Hello,

FileAid seemed to be a good way to do this - until it was discovered that the product is not available . . . icon_cool.gif

Gotta hate when that happens icon_wink.gif

d
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Aug 17, 2012 7:29 pm
Reply with quote

PBK is the answer for File Manager. You'll get two different formats depending on if you ask for "View" or "Print".
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts REASON 00D70014 in load utility DB2 6
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
Search our Forums:

Back to Top