View previous topic :: View next topic
|
Author |
Message |
Thamilselvi
New User
Joined: 22 Jun 2012 Posts: 57 Location: Chennai
|
|
|
|
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 |
|
|
senjay
Active User
Joined: 10 May 2007 Posts: 147 Location: India
|
|
|
|
Hi,
Yes, It is possible. Look for RLPRINT in Fileaid batch manual. |
|
Back to top |
|
|
Thamilselvi
New User
Joined: 22 Jun 2012 Posts: 57 Location: Chennai
|
|
|
|
Thanks a lot |
|
Back to top |
|
|
Thamilselvi
New User
Joined: 22 Jun 2012 Posts: 57 Location: Chennai
|
|
|
|
Hi,
In my workarea, there were no fileaid. Here we using filemanager.
is there any way to do the above requirement? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thamilselvi,
First you said "Thanks a lot" and later you said
Quote: |
In my workarea, there were no fileaid. Here we using filemanager. |
...
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
If you do not have File-Aid why did you ask for a File-Aid solution? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
FileAid seemed to be a good way to do this - until it was discovered that the product is not available . . .
Gotta hate when that happens
d |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
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 |
|
|
|