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

how to write pds content to other pds?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sathikriyaz

New User


Joined: 09 Jun 2008
Posts: 15
Location: india

PostPosted: Wed Jun 11, 2008 11:55 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 11, 2008 11:56 am
Reply with quote

why post in the pl/i & assembler

use ispf option 3.3 ( COPY MOVE )
Back to top
View user's profile Send private message
sathikriyaz

New User


Joined: 09 Jun 2008
Posts: 15
Location: india

PostPosted: Wed Jun 11, 2008 12:00 pm
Reply with quote

i have try with BLDL......but its show abend..........
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 11, 2008 12:02 pm
Reply with quote

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
View user's profile Send private message
sathikriyaz

New User


Joined: 09 Jun 2008
Posts: 15
Location: india

PostPosted: Wed Jun 11, 2008 12:07 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 11, 2008 12:18 pm
Reply with quote

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
View user's profile Send private message
sathikriyaz

New User


Joined: 09 Jun 2008
Posts: 15
Location: india

PostPosted: Wed Jun 11, 2008 12:31 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 11, 2008 12:35 pm
Reply with quote

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
View user's profile Send private message
sathikriyaz

New User


Joined: 09 Jun 2008
Posts: 15
Location: india

PostPosted: Wed Jun 11, 2008 1:26 pm
Reply with 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.......
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 11, 2008 1:34 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jun 12, 2008 3:56 am
Reply with quote

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. . . icon_confused.gif

If we can see a small example, we may better understand what you need to do.
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts Reformat and relocate content DFSORT/ICETOOL 4
No new posts JCL to write the log on to a PDS file JCL & VSAM 10
Search our Forums:

Back to Top