| View previous topic :: View next topic |
| Author |
Message |
jmccuistion Beginner
Joined: 26 Oct 2005 Posts: 2 Topics: 1
|
Posted: Wed Oct 26, 2005 7:58 am Post subject: Dynamic allocation of input and output files in COBOL |
|
|
I am creating a progam that will move data around based on input and output FILEAID created copybook files (positional moves) and I need to dynamically allocate both input and output files. the kicker is that these input/output files will be different lengths based on the fileaid file that is being used. Is there a way of getting around the FD statements need for a Length? I can Identify the files and there lengths in a parm
is there anybody out there that can point me in the right direction or if this is doable at all |
|
| Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12401 Topics: 75 Location: San Jose
|
|
| Back to top |
|
 |
jmccuistion Beginner
Joined: 26 Oct 2005 Posts: 2 Topics: 1
|
Posted: Wed Oct 26, 2005 10:28 am Post subject: |
|
|
all,
thanks for the information, but will not help me as each of the input files are set in length and can not change the LRECL to VB. it will defeat the purpose of the program. Oh well thanks again.
jmccuistion |
|
| Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Mon Oct 31, 2005 3:19 am Post subject: |
|
|
jmccuistion,
Are you looking only for a COBOL solution ? Can't this be done using any other utiities like SORT / EASYTREIVE or a combination of COBOL along with other utilities. If you can give us a detailed description of what you are trying to accomplish, probably we could suggest some other techniques.
Remember, both DFSORT and Syncsort (latest version) have a facility to refer variables as Symbolic names. You can convert, a fileaid copybook layout to these symbolics and use them. For more details on this search for SYMNAMES in the utillities thread. You will see lots of examples.
Thanks,
Phantom |
|
| Back to top |
|
 |
|
|
|