adspace
ok how would i do the following extract from a file i have
ssns = 267907230 which are in column 7 into a separate
data set then create a 2nd job step to extract from the
data set created the following "fund code" which is in
column 31 and is 113 into yet another data set
Answer Posted / Bhole Nath Mishra
[{"qno": "70600","question": "To accomplish this, you can use a scripting language like Python or Perl to read the input file, extract the desired columns, and write the results to separate output files. Here's an example using Python:
```
# Read input file
with open("input.txt", "r") as f:n tssns = [line.split()[6] for line in f]n tfund_codes = []
# Write output files
with open("output1.txt", "w") as out1,n topen("output2.txt", "w") as out2:n tfor ssn in ssns:n t tout1.write(ssn +
)
t tss = [line.split()[31] for line in f if line.split()[7] == ssn][0]n t tout2.write(ss +
)
```"]
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
I want sample papers for NIC Examination. Plz send them to my mail Id das.neelam@gmail.com . Plz send it today, tomorrow i've the exam.
hi, all this is shoba m.c.a . i have learned abap but no oppurtunities right now as fresher , right now i want to learn any course on demand any one pls suggest me good course and institute in hyderabad
hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern
How to get the index of the clicked field in reports in ABAP?
what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct
what is class module in vb6? what it's use? with example..
Compare any 4 software development life cycle paradigms with each other. Indicate at least one application for each of the paradigms that are suitable to developed using that paradigm.
Explain the types of operations? Draw the figure for shift and rotate operations?
Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,
I am taking the bmc control m/enterprise manager 7.0 scheduling test and just wanted to see what kind of questions they would ask or if anyone has taken the test and how long it is for how many questions?
Hi Guys, This is Rama, right now I am working as a Software Test Engineer in Gurgoan and I have over all 3 years of testing expoeriance. Right now I am looking for a change. Can any body help me out to find a job in south india. Thanks in Advance
please any one pass file aid,xpeditor and endeavor tools
can we extend a class having only one parameterised constructor.Suggest the process to do it.
Give examples of macro quoting function?
If u need any fake experience certificate in software side, contact me at: vikramyadhav@gmail.com