Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
CarloB Absent Member.
Absent Member.
3010 views

XFD mapping...

Hello everyone, I wonder if there is a way to know which file a Specific Punta XFD.

thank you very much 🙂

0 Likes
5 Replies
Knowledge Partner
Knowledge Partner

RE: XFD mapping...

Hi Carlo,

Can you give more information about your requirement, please?

Best regards,

Tom Morrison


Tom Morrison
Consultant

0 Likes
CarloB Absent Member.
Absent Member.

RE: XFD mapping...

so I explain what I want:

I want to know if there is a way to know which file is described by an XFD

😉

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: XFD mapping...

That depends, the naming of a file can happen in a variety of ways in COBOL, specified in the select phrase or perhaps defined in working storage. Do you know which version created the XFD .. more recent versions of our compiler make XFDs as XML documents and the file type is pretty clear when you open the XFD in an editor  <xfd:file-organization>Sequential</xfd:file-organization>  as well as the file name ... older compilers will have the file name in the XFD XFD,04,PUNTA, PUNTA .. there is more information on XFDs and file naming here .. Chapter 3: Preparing Your COBOL > 3.2 The Role of XFDs > 3.2.6 Naming the XFD File

0 Likes
CarloB Absent Member.
Absent Member.

RE: XFD mapping...

# l:\9.04\xfd\gedacess.xfd - generated by ACUCOBOL-GT v5.2.1
# Generated Tue Jun 07 18:46:28 2011

# [Identification Section]
XFD,04,TAB-CESSIONE,GEDACESS,12
00246,00246,001
# [Key Section]
01,0,016,00000
03
ART-CESSIONE
CAN-CESSIONE
SOT-CESSIONE
# [Condition Section]
000
# [Field Section]
0010,00010,00014
00000,00246,16,00246,+00,000,999,REC-DCES
00000,00016,16,00016,+00,000,999,KEY-DCES
00000,00012,01,00012,+00,000,000,ART-CESSIONE
00012,00004,16,00004,+00,000,999,LIN-DCES
00012,00002,16,00002,+00,000,000,CAN-CESSIONE
00014,00002,16,00002,+00,000,000,SOT-CESSIONE
00016,00006,03,00006,-03,000,000,MARG-CESSIONE
00022,00012,01,00012,-03,000,000,PREZZO-CESSIONE-LIRE
00034,00012,01,00012,-05,000,000,PREZZO-CESSIONE
00046,00001,01,00001,+00,000,000,FLAG-ESCL-RICALCOLO
00047,00010,01,00010,-04,000,000,COSTO-APPLICATO
00057,00001,16,00001,+00,000,000,FLEX-DCES
00058,00002,16,00002,+00,000,000,TCAL-DCES
00060,00186,16,00186,+00,000,999,FILLER

this is a XFD example....so, how can i Find the name of datafile described by this XFD?

thank you

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: XFD mapping...

SELECT FD1   ASSIGN       TO  "mine"

XFD shows XFD,03,FD1,MINE

so you have a Select TAB-CESSIONE assign to "GEDACESS" or GDACESS is assigned in working storage .. your file name should be GEDACESS

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.