View previous topic :: View next topic
|
Author |
Message |
sathikriyaz
New User
Joined: 09 Jun 2008 Posts: 15 Location: india
|
|
|
|
can u tell me wat command to be use for this?
its have to be create same member name and copy
its content too |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why post in the pl/i & assembler
use ispf option 3.3 ( COPY MOVE ) |
|
Back to top |
|
|
sathikriyaz
New User
Joined: 09 Jun 2008 Posts: 15 Location: india
|
|
|
|
i have try with BLDL......but its show abend.......... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Your posts are confusing, misleading
what are You trying to do? explain
nothing in Your first post implied that You were writing an assembler program
are You trying to reinvent the wheel, maybe |
|
Back to top |
|
|
sathikriyaz
New User
Joined: 09 Jun 2008 Posts: 15 Location: india
|
|
|
|
i want to write pds(member and its content) to other pds by using assembler coding
not by ispf 3.3 option(copy move) |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
use the sequential file logic
and run it as
Code: |
//jobname JOB ...
//*
//stepname EXEC PGM=Yourpgm
//*
//yourlistddname DD sysout *
//yourinputddname DD DSN=yourinputpds(yourinputmember),DISP=SHR
//youroutputddname DD DSN=youroutputpds(youroutputmember),DISP=SHR |
Quote: |
have try with BLDL......but its show abend.......... |
Your program was wrong, read the manual and correct the code,
thats the only reasonable reply for such a badly posed question/statement
but still I do not see any reason to reinvent the wheel
read
http://catb.org/~esr/faqs/smart-questions.html
it will help You to get better and more benevolent answers |
|
Back to top |
|
|
sathikriyaz
New User
Joined: 09 Jun 2008 Posts: 15 Location: india
|
|
|
|
i need to read and write the entire pds .............
wat u given is coding for reading and writing ps file..........
i try with bldl instructions in assembler instruction but i cant read more than one line in the first member itself...........
thanks to ur reply.... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
what kind of sick business requirement is that..
spending people time to reinvent the utilities...
IEBCOPY,
ISPF panels
ISPF LMSERVICES
Fileaid
filemanager
just do that, teach Your organization how to use them
or again express more clearly Your requirements
your requirement description duplicate IEBCOPY functionality
if You have sophisticated member filtering to do use ISPF library management services |
|
Back to top |
|
|
sathikriyaz
New User
Joined: 09 Jun 2008 Posts: 15 Location: india
|
|
|
|
we have to read all the members(contain programs) in one pds which is given as input for a program that will run all input member and provide the assembler list for each input member.
Then,write all member along with their assembler list in other pds.all should be done by using assembler instruction not jcl statement....... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
we have to read all the members(contain programs) in one pds which is given as input for a program that will run all input member and provide the assembler list for each input member.
Then,write all member along with their assembler list in other pds.all should be done by using assembler instruction not jcl statement....... |
good luck..
let' s translate Your organization requirement to human understandable form
you have a pds with some sources ... OK
a program to run all member ... a program that will do something to each member ??
provide the assemble list ... where will You be getting the assembler list ??
and then write the members along with their assembler...
sorry but I lost track
for this confusing requirement a REXX ISPF approach would be better
more productive by all means
unless somebody in Your organization fouled things up and simply meant
assemble the programs and save the assembler listing to a dataset
and that can be done using a simple/stupid procedure like
Code: |
//jobname JOB ...
//asmproc PROC
//c EXEC PGM=YourInstallationAssemblerProgram
//... DD the assembler required ddnames
//... DD the assembler required ddnames
//... DD the assembler required ddnames
//SYSIN DD DISP=SHR,DSN=YourSourcePDS(&MBR)
//SYSPRINT DD DISP=SHR,DSN=YourListingPDS(&MBR)
// PEND
//*
//mbr1 EXEC asmproc,MBR=mbr1
//mbr2 EXEC asmproc,MBR=mbr2
//... EXEC asmproc,MBR=...
//mbrn EXEC asmproc,MBR=mbr2n
|
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello sathikriyaz,
Please post the content of a sample "input" pds with only a couple of tiny members in it and the output you want when this pds is processed by the code you are trying to write.
Your post says something about copying all of the members from one pds to another, but the discussion also talks about assembler lists. . .
If we can see a small example, we may better understand what you need to do. |
|
Back to top |
|
|
|